Add/Update Candles
This endpoint is used to update the history data of a symbol
Name
Type
Example
Name
Type
Required
Description
Key
Type
Description
Value Example
Last updated
This endpoint is used to update the history data of a symbol
Last updated
curl --location 'http://127.0.0.1:8000/candles' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Basic TWlyYWUyMDI0OmhfQDI0QXMjamdk' \
--data-urlencode 'ohlcvs=[{"symbol":"AAPL-USD","interval":"1d","start":1639508050000,"open":165,"high":173,"low":164.22,"close":172,"volume":12244254}]'{
"code": 200,
"message": "Success"
}{
"code": 402,
"message": "Invalid data input for candles"
}{
"message": "Invalid credentials."
}