Get trading chart
Connection
URL:
/marketdata/v5/info?access_token={YOUR_ACCESS_TOKEN}
arguments array
The connection parameters.
In the first element, provide the accountId as a string.
In the second element, provide the marketId and timescale as a string.
invocationId string
The invocation identifier.
Must be unique and increase by 1 for each sent message.
target string
The stream name.
Specify "Chart".
type int
The operation type.
Set to 4 to indicate a subscription to the stream.
Example:
{
"arguments": [
"67d0456f8c7b1108e4cf5d46",
"cfd.eth_eur@15m"
],
"invocationId": "0",
"target": "Chart",
"type": 4
}Message
type string
The operation type.
2 indicates the streaming is in progress.
invocationId string
The invocation identifier. Same as in the request.
item object
The dataset object.
item.instrument string
The market identifier, in the following format: {marketType}.{baseAssetId}_{quoteAssetId}, for example: cfd.eth_eur.
item.low decimal string
The lowest base asset price within the specified time interval.
item.high decimal string
The highest base asset price within the specified time interval.
item.open decimal string
The base asset price at the beginning of the specified time interval.
item.close decimal string
The base asset price at the end of the specified time interval.
item.start dateTime
The beginning of the specified time interval, in ISO 8601 format.
item.end dateTime
The end of the specified time interval, in ISO 8601 format.
Example:
{
"type": 2,
"invocationId": "0",
"item": {
"instrument": "cfd.eth_eur",
"low": "2240.88",
"high": "2270.29",
"open": "2265.63",
"close": "2255.99",
"start": "2025-05-21T15:30:00Z",
"end": "2025-05-21T15:45:00Z"
}
}
