Issue with XAUUSD price in openapi python response
Issue with XAUUSD price in openapi python response
02 Dec 2024, 14:40
Hi, I'm writing a simple program to retrieve prices using OpenAPI, however, the api return strange prices for XAUUSD.
{
"ctidTraderAccountId": "xxxxxx",
"period": "M1",
"timestamp": "1733137547000",
"trendbar": [
{
"volume": "2",
"low": "6948900",
"deltaOpen": "0",
"deltaClose": "0",
"deltaHigh": "0",
"utcTimestampInMinutes": 28885615
}
],
"symbolId": "168"
}
According to documentation, it requires to divide the low with 100000, and round to 2 digit. The low price now becomes 69.49, which is very strange.
Would someone please help?
Thanks.
Replies
h.y.henry.chan
05 Dec 2024, 17:09
( Updated at: 06 Dec 2024, 07:46 )
RE: Issue with XAUUSD price in openapi python response
Hi there,
Sorry, I mixed up the symbol with asset ID, what are the differences?
PanagiotisCharalampous said:
Hi there,
Are you sure this is for XAUUSD? The symbol id for XAUUSD on most brokers is 41. Who is your broker?
Best regards,
Panagiotis
@h.y.henry.chan
PanagiotisCharalampous
06 Dec 2024, 07:58
RE: RE: Issue with XAUUSD price in openapi python response
h.y.henry.chan said:
Hi there,
Sorry, I mixed up the symbol with asset ID, what are the differences?
PanagiotisCharalampous said:
Hi there,
Are you sure this is for XAUUSD? The symbol id for XAUUSD on most brokers is 41. Who is your broker?
Best regards,
Panagiotis
EUR is an asset, USD is an asset, EURUSD is a symbol
@PanagiotisCharalampous
h.y.henry.chan
06 Dec 2024, 20:18
RE: RE: RE: Issue with XAUUSD price in openapi python response
PanagiotisCharalampous said:
h.y.henry.chan said:
Hi there,
Sorry, I mixed up the symbol with asset ID, what are the differences?
PanagiotisCharalampous said:
Hi there,
Are you sure this is for XAUUSD? The symbol id for XAUUSD on most brokers is 41. Who is your broker?
Best regards,
Panagiotis
EUR is an asset, USD is an asset, EURUSD is a symbol
Thank you for clarification!
@h.y.henry.chan
PanagiotisCharalampous
03 Dec 2024, 07:29
Hi there,
Are you sure this is for XAUUSD? The symbol id for XAUUSD on most brokers is 41. Who is your broker?
Best regards,
Panagiotis
@PanagiotisCharalampous