Skip to main content

xtb_client/schema/
commands.rs

1
2pub const STREAM_BALANCE_SUBSCRIBE: &'static str = "getBalance";
3pub const STREAM_BALANCE: &'static str = "balance";
4pub const STREAM_BALANCE_UNSUBSCRIBE: &'static str = "stopBalance";
5
6pub const STREAM_CANDLES_SUBSCRIBE: &'static str = "getCandles";
7pub const STREAM_CANDLES: &'static str = "candle";
8pub const STREAM_CANDLES_UNSUBSCRIBE: &'static str = "stopCandles";
9
10pub const STREAM_KEEP_ALIVE_SUBSCRIBE: &'static str = "getKeepAlive";
11pub const STREAM_KEEP_ALIVE: &'static str = "keepAlive";
12pub const STREAM_KEEP_ALIVE_UNSUBSCRIBE: &'static str = "stopKeepAlive";
13
14pub const STREAM_NEWS_SUBSCRIBE: &'static str = "getNews";
15pub const STREAM_NEWS: &'static str = "news";
16pub const STREAM_NEWS_UNSUBSCRIBE: &'static str = "stopNews";
17
18pub const STREAM_PROFITS_SUBSCRIBE: &'static str = "getProfits";
19pub const STREAM_PROFITS: &'static str = "profit";
20pub const STREAM_PROFITS_UNSUBSCRIBE: &'static str = "stopProfits";
21
22pub const STREAM_TICK_PRICES_SUBSCRIBE: &'static str = "getTickPrices";
23pub const STREAM_TICK_PRICES: &'static str = "tickPrices";
24pub const STREAM_TICK_PRICES_UNSUBSCRIBE: &'static str = "stopTickPrices";
25
26pub const STREAM_TRADES_SUBSCRIBE: &'static str = "getTrades";
27pub const STREAM_TRADES: &'static str = "trade";
28pub const STREAM_TRADES_UNSUBSCRIBE: &'static str = "stopTrades";
29
30pub const STREAM_TRADE_STATUS_SUBSCRIBE: &'static str = "getTradeStatus";
31pub const STREAM_TRADE_STATUS: &'static str = "tradeStatus";
32pub const STREAM_TRADE_STATUS_UNSUBSCRIBE: &'static str = "stopTradeStatus";
33
34pub const STREAM_PING: &'static str = "ping";
35
36
37pub const COMMAND_LOGIN: &'static str = "login";
38pub const COMMAND_LOGOUT: &'static str = "logout";
39pub const COMMAND_GET_ALL_SYMBOLS: &'static str = "getAllSymbols";
40pub const COMMAND_GET_CALENDAR: &'static str = "getCalendar";
41pub const COMMAND_GET_CHART_LAST_REQUEST: &'static str = "getChartLastRequest";
42pub const COMMAND_GET_CHART_RANGE_REQUEST: &'static str = "getChartRangeRequest";
43pub const COMMAND_GET_COMMISSION_DEF: &'static str = "getCommissionDef";
44pub const COMMAND_GET_CURRENT_USER_DATA: &'static str = "getCurrentUserData";
45pub const COMMAND_GET_IBS_HISTORY: &'static str = "getIbsHistory";
46pub const COMMAND_GET_MARGIN_LEVEL: &'static str = "getMarginLevel";
47pub const COMMAND_GET_MARGIN_TRADE: &'static str = "getMarginTrade";
48pub const COMMAND_GET_NEWS: &'static str = "getNews";
49pub const COMMAND_GET_PROFIT_CALCULATION: &'static str = "getProfitCalculation";
50pub const COMMAND_GET_SERVER_TIME: &'static str = "getServerTime";
51pub const COMMAND_GET_STEP_RULES: &'static str = "getStepRules";
52pub const COMMAND_GET_SYMBOL: &'static str = "getSymbol";
53pub const COMMAND_GET_TICK_PRICES: &'static str = "getTickPrices";
54pub const COMMAND_GET_TRADE_RECORDS: &'static str = "getTradeRecords";
55pub const COMMAND_GET_TRADES: &'static str = "getTrades";
56pub const COMMAND_GET_TRADES_HISTORY: &'static str = "getTradesHistory";
57pub const COMMAND_GET_TRADING_HOURS: &'static str = "getTradingHours";
58pub const COMMAND_GET_VERSION: &'static str = "getVersion";
59pub const COMMAND_PING: &'static str = "ping";
60pub const COMMAND_TRADE_TRANSACTION: &'static str = "tradeTransaction";
61pub const COMMAND_TRADE_TRANSACTION_STATUS: &'static str = "tradeTransactionStatus";