Structs§
- Calendar
Record - Structure representing details of a calendar record
- Chart
Last Info Record - Specification and constraints for the requested data
- Chart
Range Info Record - Structure representing chart range information
- Error
Response - Response message returned from server when operation fails.
- GetAll
Symbols Request - Only logic struct to keep symmetry. The getAllSymbols command has no request data.
- GetAll
Symbols Response - Wrapper for symbols
- GetCalendar
Request - The request has no data. This struct exists only to keep symmetry
- GetCalendar
Response - GetChart
Last Request Request - Get chart information Please note that this function can be usually replaced by its streaming equivalent getCandles which is the preferred way of retrieving current candle data.
- GetChart
Last Request Response - Structure representing details of rate information
- GetChart
Range Request Request - Structure representing chart range details
- GetCommission
DefRequest - Request for calculation of commission
- GetCommission
DefResponse - GetCurrent
User Data Request - GetCurrent
User Data Response - Structure representing account details
- GetIbs
History Request - Structure representing IB’s history block
- GetIbs
History Response - GetMargin
Level Request - GetMargin
Level Response - Structure representing account financial information
- GetMargin
Trade Request - GetMargin
Trade Response - Structure representing margin information
- GetNews
Request - Structure representing a specific Time span
- GetNews
Response - GetProfit
Calculation Request - Structure representing the order with operation code, price and volume
- GetProfit
Calculation Response - Structure representing profit information
- GetServer
Time Request - GetServer
Time Response - Structure representing time information
- GetStep
Rules Request - GetStep
Rules Response - GetSymbol
Request - Structure representing a symbol
- GetTick
Prices Request - Structure representing a level
- GetTick
Prices Response - GetTrade
Records Request - GetTrade
Records Response - GetTrades
History Request - Structure representing a time interval
- GetTrades
Request - GetTrading
Hours Request - GetTrading
Hours Response - GetVersion
Request - GetVersion
Response - Hours
Record - IBRecord
- Structure representing IB data
- Login
Request - Structure representing user’s login data
- Login
Response - Only logic struct to keep symmetry. The login command has no response.
- News
Body Record - Structure representing a news item
- Ping
Request - Ping
Response - Rate
Info Record - Structure representing details of a rate
- Request
- Message sent to XTB servers
- Response
- Response message returned from server when operation succeeds.
- Step
Record - Structure representing a record step
- Step
Rule Record - Structure representing a step rule
- Stream
Data Message - Data stream item representation
- Stream
GetBalance Data - Stream
GetBalance Subscribe - Stream
GetBalance Unsubscribe - Stream
GetCandles Data - Stream
GetCandles Subscribe - Stream
GetCandles Unsubscribe - Stream
GetKeep Alive Data - Stream
GetKeep Alive Subscribe - Stream
GetKeep Alive Unsubscribe - Stream
GetNews Data - Stream
GetNews Subscribe - Stream
GetNews Unsubscribe - Stream
GetProfit Data - Stream
GetProfit Subscribe - Stream
GetProfit Unsubscribe - Stream
GetTick Prices Data - Stream
GetTick Prices Subscribe - Stream
GetTick Prices Unsubscribe - Stream
GetTrade Status Data - Stream
GetTrade Status Subscribe - Stream
GetTrade Status Unsubscribe - Stream
GetTrades Data - Stream
GetTrades Subscribe - Stream
GetTrades Unsubscribe - Stream
Ping Subscribe - Subscribe
Request - Subscribe for stream of data
- Symbol
Record - Structure representing details of a financial symbol
- Tick
Record - Structure representing market price data
- Trade
Record - Structure representing a trade order
- Trade
Trans Info - Trade
Transaction Request - Structure embedding a TRADE_TRANS_INFO instance
- Trade
Transaction Response - Trade
Transaction Status Request - Trade
Transaction Status Response - Structure representing the response
- Trading
Hours Record - Unsubscribe
Request - Unsubscribe from stream of data
Enums§
- DayOf
Week - Impact
Level - Expected impact level of event in calendar
- Margin
Mode - Enum representing different margin modes
- Profit
Mode - Enum representing different profit modes
- QuoteId
- Enum representing various types
- Time
Period - Enum representing different time periods
- Trade
Status - Trading
Action - Enum representing types of trading actions
- Trading
Command - Enum representing different types of trading actions
- Transaction
Status - Transaction
Type - XtbError
Code - Rust enum definition for error codes
- XtbError
Code Error
Constants§
- COMMAND_
GET_ ALL_ SYMBOLS - COMMAND_
GET_ CALENDAR - COMMAND_
GET_ CHART_ LAST_ REQUEST - COMMAND_
GET_ CHART_ RANGE_ REQUEST - COMMAND_
GET_ COMMISSION_ DEF - COMMAND_
GET_ CURRENT_ USER_ DATA - COMMAND_
GET_ IBS_ HISTORY - COMMAND_
GET_ MARGIN_ LEVEL - COMMAND_
GET_ MARGIN_ TRADE - COMMAND_
GET_ NEWS - COMMAND_
GET_ PROFIT_ CALCULATION - COMMAND_
GET_ SERVER_ TIME - COMMAND_
GET_ STEP_ RULES - COMMAND_
GET_ SYMBOL - COMMAND_
GET_ TICK_ PRICES - COMMAND_
GET_ TRADES - COMMAND_
GET_ TRADES_ HISTORY - COMMAND_
GET_ TRADE_ RECORDS - COMMAND_
GET_ TRADING_ HOURS - COMMAND_
GET_ VERSION - COMMAND_
LOGIN - COMMAND_
LOGOUT - COMMAND_
PING - COMMAND_
TRADE_ TRANSACTION - COMMAND_
TRADE_ TRANSACTION_ STATUS - STREAM_
BALANCE - STREAM_
BALANCE_ SUBSCRIBE - STREAM_
BALANCE_ UNSUBSCRIBE - STREAM_
CANDLES - STREAM_
CANDLES_ SUBSCRIBE - STREAM_
CANDLES_ UNSUBSCRIBE - STREAM_
KEEP_ ALIVE - STREAM_
KEEP_ ALIVE_ SUBSCRIBE - STREAM_
KEEP_ ALIVE_ UNSUBSCRIBE - STREAM_
NEWS - STREAM_
NEWS_ SUBSCRIBE - STREAM_
NEWS_ UNSUBSCRIBE - STREAM_
PING - STREAM_
PROFITS - STREAM_
PROFITS_ SUBSCRIBE - STREAM_
PROFITS_ UNSUBSCRIBE - STREAM_
TICK_ PRICES - STREAM_
TICK_ PRICES_ SUBSCRIBE - STREAM_
TICK_ PRICES_ UNSUBSCRIBE - STREAM_
TRADES - STREAM_
TRADES_ SUBSCRIBE - STREAM_
TRADES_ UNSUBSCRIBE - STREAM_
TRADE_ STATUS - STREAM_
TRADE_ STATUS_ SUBSCRIBE - STREAM_
TRADE_ STATUS_ UNSUBSCRIBE
Type Aliases§
- GetChart
Range Request Response - Response for the
getChartRangeRequestis same asgetChartLastRequest - GetSymbol
Response - GetTrades
History Response - List of trade records
- GetTrades
Response - List of trade records