GetLastTicks

GetLastTicks -getting the last ticks for specified symbols from trading server.

Example:

{"id": 11, "type":"GetLastTicks", "body": {"symbol":"EURUSD.s,BTCUSD.s"}}

Request Body Fields:

Parameter
Required
Type
Description

symbol

string

comma separated string with a list of instruments to get last ticks

Responce Type - LastTicks.

Responce Body Fields:

Parameter
Always returned
Type
Description

symbol

string

symbol for which a tick was receive

time

int64

time of ticks in milliseconds in UTC

bid

double

bid price

ask

double

ask price

rate_to_account_currency

double

exchange rate to trading account currency

Example:

{
    "type": "LastTicks",
    "id": 11,
    "body": [
        {
            "symbol": "EURUSD.s",
            "time": 1686309883420,
            "ask": 1.07704,
            "bid": 1.07687,
            "rate_to_account_currency": 1
        },
        {
            "symbol": "BTCUSD.s",
            "time": 1686309877448,
            "ask": 26593.14,
            "bid": 26591.87,
            "rate_to_account_currency": 1
        }
    ]
}

Last updated