curl --request POST \
--url http://localhost:8000/market-data/historical-candles \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"connector_name": "<string>",
"trading_pair": "<string>",
"interval": "<string>",
"start_time": 123,
"end_time": 123
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get historical candles data for a specific trading pair.
Args: config: Configuration for historical candles including connector, trading pair, interval, start and end time
Returns: Historical candles data or error message
curl --request POST \
--url http://localhost:8000/market-data/historical-candles \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"connector_name": "<string>",
"trading_pair": "<string>",
"interval": "<string>",
"start_time": 123,
"end_time": 123
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Successful Response
Was this page helpful?