|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« Trading Commands |
MiniRobotLanguage (MRL)
TRA. Command
Broker-agnostic trading command dispatcher
Intention
TRA. unifies broker access behind one namespace and one command format. Instead of provider-specific command families, scripts use TRA.Broker.Action with parameter lists.
Syntax
TRA.Broker.Action[|P1][|P2][|...]
Supported Brokers (current dispatcher list)
Binance, Kraken, Bitget, ByBit, KuCoin, OKX
AlphaVantage, Polygon, InteractiveBrokers, IG, Alpaca, Coinbase
Common Actions
TRA.Broker.Init[|$$TESTNET]
TRA.Broker.SetKey|$$KEY[|$$MODE]
TRA.Broker.SetSecret|$$SECRET[|$$MODE]
TRA.Broker.GetKey[|$$RET]
TRA.Broker.GetPrice|$$SYMBOL|$$RET
TRA.Broker.GetBalance[|$$RET]
TRA.Broker.Trade|$$SYM|$$SIDE|$$TYPE|$$QTY[|$$PRICE|$$RET]
TRA.Broker.Cancel|$$SYM|$$ORDER_ID|$$RET
TRA.Broker.GetOrders[|$$SYM|$$RET]
Example
USM.10|?exeloc\TRA_Error.log
TRA.Binance.Init|0
TRA.Binance.SetKey|MyKey123
TRA.Binance.SetSecret|MySecret123
TRA.Binance.GetPrice|BTCUSDT|$$PRICE
ENR.
See also