GET api/Values/GetPrice
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of GoldPriceStruct| Name | Description | Type | Additional information |
|---|---|---|---|
| FxAsk | decimal number |
None. |
|
| FxBid | decimal number |
None. |
|
| Bid | decimal number |
None. |
|
| Ask | decimal number |
None. |
|
| QtyBid | decimal number |
None. |
|
| QtyAsk | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| Premium | decimal number |
None. |
|
| Increment | decimal number |
None. |
|
| SourcePrice | string |
None. |
|
| StrTimeUpdate | string |
None. |
|
| GoldType | string |
None. |
|
| GoldCode | string |
None. |
|
| Buy | string |
None. |
|
| Sell | string |
None. |
|
| TimeUpdate | date |
None. |
|
| BuyChange | decimal number |
None. |
|
| SellChange | decimal number |
None. |
|
| PresentDate | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"GoldType": "sample string 1",
"GoldCode": "sample string 2",
"Buy": "sample string 3",
"Sell": "sample string 4",
"TimeUpdate": "2025-12-29T14:55:32.2469464+07:00",
"BuyChange": 6.0,
"SellChange": 7.0,
"PresentDate": "sample string 8",
"FxAsk": 1.0,
"FxBid": 1.0,
"Bid": 1.0,
"Ask": 1.0,
"QtyBid": 1.0,
"QtyAsk": 1.0,
"Discount": 1.0,
"Premium": 1.0,
"Increment": 1.0,
"SourcePrice": "sample string 1",
"StrTimeUpdate": "อัพเดตล่าสุด วันที่ 29 ธ.ค. 2568 เวลา 14:55:32 น."
},
{
"GoldType": "sample string 1",
"GoldCode": "sample string 2",
"Buy": "sample string 3",
"Sell": "sample string 4",
"TimeUpdate": "2025-12-29T14:55:32.2469464+07:00",
"BuyChange": 6.0,
"SellChange": 7.0,
"PresentDate": "sample string 8",
"FxAsk": 1.0,
"FxBid": 1.0,
"Bid": 1.0,
"Ask": 1.0,
"QtyBid": 1.0,
"QtyAsk": 1.0,
"Discount": 1.0,
"Premium": 1.0,
"Increment": 1.0,
"SourcePrice": "sample string 1",
"StrTimeUpdate": "อัพเดตล่าสุด วันที่ 29 ธ.ค. 2568 เวลา 14:55:32 น."
}
]
application/xml, text/xml
Sample:
<ArrayOfGoldPriceStruct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GITS4.Reference">
<GoldPriceStruct>
<Ask>1</Ask>
<Bid>1</Bid>
<Buy>sample string 3</Buy>
<BuyChange>6</BuyChange>
<Discount>1</Discount>
<FxAsk>1</FxAsk>
<FxBid>1</FxBid>
<GoldCode>sample string 2</GoldCode>
<GoldType>sample string 1</GoldType>
<Increment>1</Increment>
<Premium>1</Premium>
<PresentDate>sample string 8</PresentDate>
<QtyAsk>1</QtyAsk>
<QtyBid>1</QtyBid>
<Sell>sample string 4</Sell>
<SellChange>7</SellChange>
<SourcePrice>sample string 1</SourcePrice>
<TimeUpdate>2025-12-29T14:55:32.2469464+07:00</TimeUpdate>
</GoldPriceStruct>
<GoldPriceStruct>
<Ask>1</Ask>
<Bid>1</Bid>
<Buy>sample string 3</Buy>
<BuyChange>6</BuyChange>
<Discount>1</Discount>
<FxAsk>1</FxAsk>
<FxBid>1</FxBid>
<GoldCode>sample string 2</GoldCode>
<GoldType>sample string 1</GoldType>
<Increment>1</Increment>
<Premium>1</Premium>
<PresentDate>sample string 8</PresentDate>
<QtyAsk>1</QtyAsk>
<QtyBid>1</QtyBid>
<Sell>sample string 4</Sell>
<SellChange>7</SellChange>
<SourcePrice>sample string 1</SourcePrice>
<TimeUpdate>2025-12-29T14:55:32.2469464+07:00</TimeUpdate>
</GoldPriceStruct>
</ArrayOfGoldPriceStruct>