Sunday, June 12, 2022
HomeStockMetaTrader 5 to Binance Library Documentation - Buying and selling Programs -...

MetaTrader 5 to Binance Library Documentation – Buying and selling Programs – 28 April 2022


string GetSpotBalances(string apikey, string secretkey, balances & balanceCurrencies[], bool BinanceUS)

– get the balances for every forex pockets on the spot account

Parameters:

apikey – specify the Binance API key
secretkeyspecify the Binance Secret key
BinanceUS – displays if the Binance.com or Binance.US server shall be used

balanceCurrencies[n].image: “BTC”
balanceCurrencies[n].quantity: 1.4354

string GetFuturesBalances(string apikey, string secretkey, balances & balanceCurrencies[])

get the balances for every forex pockets on the futures account

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key

balanceCurrencies[n].image: “ETH
balanceCurrencies[n].quantity: 5.4543

string GetCoinmFuturesBalances(string apikey, string secretkey, balances & balanceCurrencies[])

 get the balances for every forex pockets on the COIN-M futures account

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key

balanceCurrencies[n].image: “ETH
balanceCurrencies[n].quantity: 5.4543

string GetSpotOrders(string apikey, string secretkey, string image, orders_struct & ordersArray[], bool BinanceUS)

– get the opened orders on the required spot instrument

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key
image – specify the instrument to get the orders on
BinanceUS – displays if the Binance.com or Binance.US server shall be used

ordersArray[n].image: “BTCUSDT”
ordersArray[n].orderId: “dsf88f23jf8328”
ordersArray[n].worth: 43323.49
ordersArray[n].measurement: 0.5
ordersArray[n].sort: “Restrict”
ordersArray[n].aspect: “Purchase”
ordersArray[n].stopprice: 0

string GetFuturesOrders(string apikey, string secretkey, string image, orders_struct & ordersArray[])

– get the opened orders on the required futures instrument

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key
image – specify the instrument to get the orders on

ordersArray[n].image: “BTCUSDT”
ordersArray[n].orderId: “dsf88f23jf8328”
ordersArray[n].worth: 43323.49
ordersArray[n].measurement: 0.5
ordersArray[n].sort: “Restrict”
ordersArray[n].aspect: “Purchase”
ordersArray[n].stopprice: 0

string GetCoinmFuturesOrders(string apikey, string secretkey, string image, orders_struct & ordersArray[])

– get the opened orders on the required COIN-M futures instrument

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key
image – specify the instrument to get the orders on

ordersArray[n].image: “BTCUSDT”
ordersArray[n].orderId: “dsf88f23jf8328”
ordersArray[n].worth: 43323.49
ordersArray[n].measurement: 0.5
ordersArray[n].sort: “Restrict”
ordersArray[n].aspect: “Purchase”
ordersArray[n].stopprice: 0

string GetFuturesPositions(string apikey, string secretkey, string image, positions_struct & positionsArray[])

– get the opened positions on the required futures instrument

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key
image – specify the instrument to get the orders on

positionsArray [n].image: “BTCUSDT”
positionsArray [n].aspect: “Purchase”

positionsArray [n].worth: 43323.49
positionsArray [n].measurement: 0.5

string GetCoinmFuturesPositions(string apikey, string secretkey, string image, positions_struct & positionsArray[])

– get the opened positions on the required COIN-M futures instrument

Parameters:

apikey – specify the Binance API key
secretkey  specify the Binance Secret key
image – specify the instrument to get the orders on

positionsArray [n].image: “BTCUSDT”
positionsArray [n].aspect: “Purchase”

positionsArray [n].worth: 43323.49
positionsArray [n].measurement: 0.5

string SendSpotOrderToBinance(string image = “”, string path = “”, string sort = “”, double lot = 0, double entry_price = 0, double stop_price = 0,string apikey = “”, string secretkey = “”, bool binanceUs = false)

– ship the order for the required spot instrument

Parameters:

image – specify the instrument
path – specify if the path is both “BUY” or “SELL”
sort – specify if the order sort is without doubt one of the following: “MARKET”, “LIMIT” or “STOP_LOSS_LIMIT”
lot – specify the quantity to enter
entry_price – specify the worth for pending (LIMIT or STOP_LOSS_LIMIT) orders. For MARKET orders it should be empty
stop_price – specify the cease worth if it’s a STOP_LOSS_LIMIT order. For different order sorts it should be empty
apikey – specify the Binance API key
secretkey – specify the Binance Secret key
BinanceUS – displays if the Binance.com or Binance.US server shall be used

“SELL LIMIT order on ETHUSDT efficiently executed”

string SendFuturesOrderToBinance(string image = “”, string path = “”, string sort = “”, double lot = 0, double entry_price = 0, double stop_price = 0, double stop_loss = 0, double take_profit = 0, string apikey = “”, string secretkey = “”)

– ship the order for the required futures instrument

Parameters:

image – specify the instrument
path – specify if the path is both “BUY” or “SELL”
sort – specify if the order sort is without doubt one of the following: “MARKET”, “LIMIT” or “STOP_LOSS_LIMIT”
lot – specify the quantity to enter
entry_price – specify the worth for pending (LIMIT or STOP_LOSS_LIMIT) orders. For MARKET and STOP_MARKET orders it should be empty
stop_price – specify the cease worth if it’s a STOP_LOSS_LIMIT or STOP_MARKET order. For different order sorts it should be empty
stop_loss – specify the stop-loss worth
take_profit – specify the take-profit worth
apikey – specify the Binance API key
secretkey – specify the Binance Secret key

“BUY LIMIT order on BTCUSDT efficiently executed”

string SendCoinmFuturesOrderToBinance(string image = “”, string path = “”, string sort = “”, double lot = 0, double entry_price = 0, double stop_price = 0, double stop_loss = 0, double take_profit = 0, string apikey = “”, string secretkey = “”)

– ship the order for the required COIN-M futures instrument

Parameters:

image – specify the instrument
path – specify if the path is both “BUY” or “SELL”
sort – specify if the order sort is without doubt one of the following: “MARKET”, “LIMIT” or “STOP_LOSS_LIMIT”
lot – specify the quantity to enter
entry_price – specify the worth for pending (LIMIT or STOP_LOSS_LIMIT) orders. For MARKET and STOP_MARKET orders it should be empty
stop_price – specify the cease worth if it’s a STOP_LOSS_LIMIT or STOP_MARKET order. For different order sorts it should be empty
stop_loss – specify the stop-loss worth
take_profit – specify the take-profit worth
apikey – specify the Binance API key
secretkey – specify the Binance Secret key

“BUY LIMIT order on XRPUSDT efficiently executed”

string CancelSpotOrderToBinance(string image = “”, lengthy orderId = 0, string apikey = “”, string secretkey = “”, bool binanceUs = false)

– cancel the order on the required spot instrument

Parameters:

image – specify the instrument
orderId – specify if the orderId of the order that must be cancelled
apikey – specify the Binance API key
secretkey – specify the Binance Secret key
binanceUS – displays if the Binance.com or Binance.US server shall be used

“BUY LIMIT order on XRPUSDT efficiently cancelled”

string CancelFuturesOrderToBinance(string image = “”, lengthy orderId = 0, string apikey = “”, string secretkey = “”)

– cancel the order on the required futures instrument

Parameters:

image – specify the instrument
orderId – specify if the orderId of the order that must be cancelled
apikey – specify the Binance API key
secretkey – specify the Binance Secret key

“SELL LIMIT order on ETHUSDT efficiently cancelled”

string CancelCoinmFuturesOrderToBinance(string image = “”, lengthy orderId = 0, string apikey = “”, string secretkey = “”)

– cancel the order on the required COIN-M futures instrument

Parameters:

image – specify the instrument
orderId – specify if the orderId of the order that must be cancelled
apikey – specify the Binance API key
secretkey – specify the Binance Secret key

“SELL LIMIT order on ADAUSDT efficiently cancelled”
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments