![]() ![]() Get started today and buy, sell and store Bitcoin, Ethereum, Bitcoin Cash, Litecoin, Binance Coin, and more, all with some of the lowest fees in crypto. Int totalSellLimit = binance.totalSellLimitOrders(Symbol()) īinance.orderBuyLimit(Symbol(),0.01,50500,"GTC") īinance.orderSellLimit(Symbol(),0.Welcome to Binance! The world’s #1 cryptocurrency exchange by trading volume. Int totalBuyLimit = binance.totalBuyLimitOrders(Symbol()) String positionMode = binance.getPositionMode() //-Check Position Mode setting-//ītHedgePositionMode() //-Set Hedge Position Mode-//ītOneWayPositionMode() //-Set OneWay Position Mode-// String marginType = binance.getMarginType() //-Check Margin Type setting-//ītCrossedMarginType() //-Set Crossed Margin Type-//ītIsolatedMarginType() //-Set Isolated Margin Type-// Int leverage = binance.getLeverage() //-Check Leverage setting-//ītLeverage(10) //-Set Leverage to 10x-// String positionSide = openPositions.positionSide ĭouble positionAmt = openPositions.positionAmt ĭouble entryPrice = openPositions.entryPrice ĭouble markPrice = openPositions.markPrice ĭouble unRealizedProfit = openPositions.unRealizedProfit ĭouble liquidationPrice = openPositions.liquidationPrice īinance.cancelAllOrders(Symbol()) //-Cancel all open orders-//īinance.closeBuyPosition(Symbol()) //-Close buy position-//īinance.closeSellPosition(Symbol()) //-Close sell position-//ĭouble balanceUSDT = binance.balance("USDT") //-Check Balance-// String timeInForce = openOrders.timeInForce ĭouble stopPrice = openOrders.stopPrice ĭouble avgPrice = openOrders.avgPrice ĭouble executedQty = openOrders.executedQty īool closePosition = openOrders.closePosition īinance.getOpenPositions(Symbol(),openPositions) įor(int i = 0 i < ArraySize(openPositions) i ) String positionSide = openOrders.positionSide Print("BidQty = ",orderBook.bidQty) īinance.getOpenOrders(Symbol(),openOrders) įor(int i = 0 i < ArraySize(openOrders) i ) -Place sell limit order BTCUSDT quantity 0.02 BTC at limit price 25500 USDT-//īinance.orderSellLimit("BTCUSDT" // symbol nameīinance.getOrderBook(Symbol(),orderBook) įor(int i = 0 i < ArraySize(orderBook) i ) ![]() -Place sell market order BTCUSDT quantity 0.02 BTC at market price-//īinance.orderSellMarket("BTCUSDT" // symbol name ,"GTC" // time in force: GTC, IOC, FOK, default GTC -Place buy limit order BTCUSDT quantity 0.01 BTC at limit price 15500 USDT-//īinance.orderBuyLimit("BTCUSDT" // symbol name ![]() -Place buy market order BTCUSDT quantity 0.01 BTC at market price-//īinance.orderBuyMarket("BTCUSDT" // symbol name String Symbol = "BTCUSDT" // Symbol name string HistoryData = "1W" // History data: 1W = 1 week, 1M = 1 month, 3M = 3 months, 6M = 6 months, 1Y = 1 year, MAX = Maximum available data string ApiKey = "" // Binance api key string SecretKey = "" // Binance secret keyīinance.init( Symbol,HistoryData,ApiKey,SecretKey) #Download binance for mac how toCopy BinanceFuturesEA-Sample.mq5 to folder \MQL5\ExpertsĮxample how to call Binance Futures Library from EA #include.Copy BinanceFutures.mqh header file to folder \MQL5\Include.Move BinanceFuturesLib.ex5 from folder \MQL5\Scripts\Market to MQL5\Libraries Buy or rent Binance Futures Library from MQL5 market Automatically display the chart on the screen.Support all order types: Market, Limit, Stop-Limit, Stop-Market, StopLoss and TakeProfit.The library is used to develop automatic trading on Binance Futures Market from MT5 platform. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |