GetInstruments

GetInstruments -get information about "eurusd", "gbpusd", "btcusd" instruments available for the account

Request Body Fields:

Parameter
Required
Type
Description

symbol

string

optional array of strings with a list of instruments to get inofrmation about

Example

{"id": 11, "type":"GetInstruments", "body": {"symbols":["eurusd", "gbpusd", "btcusd"]}}

Responce Type - GetInstruments.

Responce Body Fields:

Parameter
Always returned
Type
Description

symbol

string

symbol for which a tick was receive

symbol_group

string

the name of symbol group

currency_base

string

the currency of user trading account

currency_margin

string

the symbol margin currency

currency_profit

string

the profit currency for the symbol

currency_source

string

the source of currency for the symbol

digits

int64

the number of decimal places in the price of the symbol.

contract_size

int64

the contract size of the symbol

stops_level

int64

the price band, within which placing stop orders is not allowed

calc_mode

int64

the mode of margin and profit calculation

trade_mode

int64

the symbol trading mode

volume_min

double

the minimum volume of trade operations for the symbol

volume_max

double

the maximum volume of trade operations for the symbol

volume_step

double

the volume change step for trade operations for the symbol

initial_margin

double

the size of the initial margin

hedged_margin

double

the value of the hedged margin

maintenance_margin

double

the size of the maintenance margin

initial_margin_rate_buy

double

the initial margin rate for orders of the specified type (buy)

initial_margin_rate_sell

double

the initial margin rate for orders of the specified type (sell)

maintenance_margin_rate_buy

double

the maintenance margin rate for orders of the specified type (buy)

maintenance_margin_rate_sell

double

the maintenance margin rate for orders of the specified type (sell)

tick_size

int64

the size of one tick of the symbol

tick_value

int64

the price of one tick of the symbol

swap_mode

int64

the swap calculation mode for the symbol

swap_long

double

the swap size for long positions

swap_short

double

the swap size for short positions

swap_3day

double

the triple swap day

commission_in

double

in comission

commission_out

double

out comission

commission_daily

double

daily commission

commission_monthly

double

month commission

fee

double

fee

Possible values of parameter trade_mode:

ID
Value
Description

TRADE_DISABLED

0

Trade is disabled.

TRADE_LONGONLY

1

Only long positions are allowed.

TRADE_SHORTONLY

2

Only short positions are allowed.

TRADE_CLOSEONLY

3

Only closure is allowed.

TRADE_FULL

4

Full trading access.

Possible values of parameter calc_mode:

ID
Value
Description

TRADE_MODE_FOREX

0

The Forex calculation mode.

TRADE_MODE_FUTURES

1

The Futures calculation mode.

TRADE_MODE_CFD

2

The CFD calculation mode.

TRADE_MODE_CFDINDEX

3

The CFDIndex calculation mode.

TRADE_MODE_CFDLEVERAGE

4

The CFDLeverage calculation mode.

TRADE_MODE_FOREX_NO_LEVERAGE

5

Totally equivalent to the TRADE_MODE_FOREX type except that the client leverage is not taken into account when calculating the marginarrow-up-right. RADE_MODE_FOREX_NO_LEVERAGE can be used if it is necessary to calculate the margin with a fixed leverage for all clients regardless of their actual leverage. If this type is selected, the client leverage is not taken into account when calculating the margin. A fixed leverage can be set through margin ratesarrow-up-right (for example, the rate of 0.01 is similar to the leverage of 1:100).

Possible values of parameter swap_mode:

ID
Value
Description

SWAP_DISABLED

0

Swap charging is disabled.

SWAP_BY_POINTS

1

Swaps are calculated as the amount of points of the symbol price.

SWAP_BY_SYMBOL_CURRENCY

2

Swap charging in the base currency of a symbol.

SWAP_BY_MARGIN_CURRENCY

3

Swap charging in the margin currency of a symbol.

SWAP_BY_GROUP_CURRENCY

4

Swap charging in the group (deposit) currency.

SWAP_BY_INTEREST_CURRENT

5

Swap charging as a per cent from the price of a symbol at calculation of swap.

SWAP_BY_INTEREST_OPEN

6

Swap charging as a per cent from the open price of a position by a symbol.

SWAP_REOPEN_BY_CLOSE_PRICE

7

Swap charging by reopening position. At the end of a trading day position is closed. Next day it is reopened by the close price +/- number of points specified using the IMTConSymbol::SwapLong and IMTConSymbol::SwapShort methods.

SWAP_REOPEN_BY_BID

8

Swap charging by reopening position. At the end of a trading day position is closed. At the end of a trading day position is closed. Next day it is reopened by the current Bid price +/- number of points specified using the IMTConSymbol::SwapLong and IMTConSymbol::SwapShort methods.

SWAP_BY_PROFIT_CURRENCY

9

Swap charging in the profit currency of a symbol.

Example:

Last updated