GetCandles

GetCandles

Example:

{"id": 11, "type":"GetCandles", "body": {"symbol":"USDJPY.s", "time_frame": 1, "from": 1687521386000, "to": 1687521480000}}

Request Body Fields:

Parameter
Required
Type
Description

symbol

string

the name of the symbol to get quotes for

time_frame

int

from

u_int64

the beginning of the period for which you want to get quotes. The date is shown in ms since 01/01/1970

to

u_int64

the end of the period for which you want to get quotes. The date is shown in ms since 01/01/1970

Responce Type - GetCandles

Responce Body Fields:

Parameter
Always returned
Type
Description

open

float

bar open price — price at the beginning of bar formation (beginning of a minute)

close

float

bar close price — price at the end of bar formation (end of a minute)

low

float

The lowest price inside the bar

high

float

The highest price inside the bar

time

u_int64

time of a bar in ms that have elapsed since 01.01.1970

volume

float

The real volume of trades executed during bar formation

Example:

{
    "type": "GetCandles",
    "id": 11,
    "body": [
        {
            "open": 143.271,
            "close": 143.243,
            "low": 143.241,
            "high": 143.271,
            "time": 1687521360000,
            "volume": 0
        },
        {
            "open": 143.243,
            "close": 143.236,
            "low": 143.235,
            "high": 143.243,
            "time": 1687521420000,
            "volume": 0
        },
        {
            "open": 143.236,
            "close": 143.242,
            "low": 143.226,
            "high": 143.243,
            "time": 1687521480000,
            "volume": 0
        }
    ]
}

Last updated