Trading Settings Integration

Trading Settings Integration gRPC API

Messages and Data Structures

TradingInstrumentGrpcModel

Represents a trading instrument with its associated parameters.

message TradingInstrumentGrpcModel {
    string Name = 1;
    int32 Digits = 2;
    string Base = 3;
    string Quote = 4;
    double TickSize = 5;
    optional string SwapScheduleId = 6;
    optional string GroupId = 7;
    optional int32 Weight = 8;
    optional int32 DayTimeout = 9;
    optional int32 NightTimeout = 10;
    bool TradingDisabled = 11;
    double LotSize = 12;
    repeated TradingInstrumentDayOffGrpcModel DaysOff = 13;
}

Fields:

Order
Name
Description

1

Name

The name of the trading instrument (e.g., EUR/USD).

2

Digits

Number of decimal places for instrument prices.

3

Base

The base currency of the instrument.

4

Quote

The quote currency of the instrument.

5

TickSize

Minimum price increment for the instrument.

6

SwapScheduleId

ID of the swap schedule (optional).

7

GroupId

ID of the instrument group (optional).

8

Weight

Weight of the instrument for processing (optional).

9

DayTimeout

Day trading session timeout (optional).

10

NightTimeout

Night trading session timeout (optional).

11

TradingDisabled

Indicates whether trading is disabled for this instrument.

12

LotSize

The standard lot size for this instrument.

13

DaysOff

List of trading session days off.


TradingInstrumentDayOffGrpcModel

Represents a day off for a trading instrument.

Fields:

Order
Name
Description

1

DowFrom

Start day of the week (0 = Sunday, 6 = Saturday).

2

TimeFrom

Start time for the day off (HH:mm format).

3

DowTo

End day of the week.

4

TimeTo

End time for the day off (HH:mm format).


TradingGroupGrpcModel

Represents a trading group with its settings.

Fields:

Order
Name
Description

1

Id

Unique identifier for the trading group.

2

Name

Name of the trading group.

3

TradingProfileId

ID of the associated trading profile.

4

MarkupProfileId

ID of the associated markup profile (optional).

5

SwapProfileId

ID of the associated swap profile.

6

TradingDisabled

Indicates if trading is disabled for this group.


TradingProfileGrpcModel

Represents a trading profile with its conditions.

Fields:

Order
Name
Description

1

Id

Unique identifier for the trading profile.

2

StopOutPercent

Stop-out percentage for this profile.

3

IsABook

Indicates if this profile uses A-Book execution.

4

MarginCallPercent

Margin call percentage (optional).

5

Instruments

List of associated instruments with their settings.

6

Leverages

List of available leverage levels for this profile.

7

CollateralCurrencies

Currencies used as collateral.

8

InitialDeposit

Minimum initial deposit required.

9

HedgeMarginCoefficient

Hedge margin coefficient for this profile.

10

CommissionPerLot

Commission per lot traded (optional).


TradingProfileInstrumentGrpcModel

Represents instrument-specific settings within a trading profile.


SwapProfileGrpcModel

Represents a swap profile.


SwapScheduleTypeGrpcModel

Represents the swap schedule type.


SwapProfileInstrumentGrpcModel

Represents swap values for an instrument.


SwapScheduleGrpcModel

Represents a swap schedule.


SwapDayScheduleGrpcModel

Represents a daily swap schedule.


MarkupProfileGrpcModel

Represents a markup profile.


MarkupInstrumentGrpcModel

Represents the markup settings for an instrument.


GetInstrumentsFilterRequest

Represents the filter request for instruments.


gRPC Service: TradingSettingsIntegrationGrpcService

This service provides management for trading instruments, trading profiles, groups, swap schedules, and markup profiles.

Last updated