If you've benefited from the code, please consider leaving a review/rating on my FEX Submission.Bitcoin is one of the most popular cryptocurrencies in the market. V0.1.0 - Support for cross and isolated margin trading via cmargin.* and imargin.* (29 endpoints). V0.0.0 - First release with main components of spot.* and pub.*. TransferHistory - returns a list of transfers in and out of margin. Transfer - requests a transfer between spot and margin accounts. SymbolInfo - returns info about each symbol. RepayRecord - returns a record of loan repayments. OrderHistory - returns a previous order given the asset and order id. NewOrder - returns an object for making orders. MaxTransferableOut - returns current withdrawal limits. Loan - requests a loan for a specific asset and quantity. InterestHistory - returns interest history on loans. Cross and Isolated Margin (cmargin.*, imargin.*)ĪccountInfo - returns the account portfolio.ĪllOrders - returns all orders (open and closed).ĬallHistory - returns history of forced liquidations (margin calls).ĬancelOrder - cancels an order given the symbol and order id. OpenOrders - returns all open orders on a symbol. NormOrder - simple market order object for a given symbol, side and normQty. NewOrder - creates an object for making orders of a given orderType. Spot (spot.*)ĪccountInfo - returns spot account portfolio for default user.ĪccountTradeList - returns your trades for a specific account and symbol.ĪllOrders - returns (open/filled) orders for a specific account and symbol.ĬancelAllOrders - cancels all active orders on a symbol including OCO's.ĬancelOrder - cancels an active order given a symbol and order id. RepKlines - repeats calls to pub.klines for larger datasets. RepAggTrades - repeats calls to pub.aggTrades for larger datasets. RecentTrades - returns a list of recent trades for a specific symbol. Price - returns the latest price for a symbol or symbols. Klines - returns candlestick data for a specific symbol and interval. HistoricalTrades - returns market trade history for a specific symbol. GetServerTime - returns the current Binance server timestamp. List of functions Public (pub.*) - No API keys requiredĪggTrades - returns public aggregated trade data for a specific symbol.īookDepth - returns up to 5000 bid/ask prices and quantities for a symbol.īookTicker - returns the best bid/ask price & qty for a symbol or symbols.ĮxchangeInfo - returns info about each symbol (permissions, filters, etc.). Each functions' help documentation (such as help spot.newOrder) provide further info and, in all cases, at least one example showing how to use that function. us would be appreciated).įunctions are scoped to pub.* (for the public market data endpoints), spot.* (for the spot account endpoints), cmargin.* (for cross margin trading) and imargin.* (for isolated margin trading). Note, I haven't been able to test but as far as I can tell, the endpoints are cross-compatible (feedback from anyone using. I suggest starting with pub.* and spot.* before moving onto margin trading.įor different URL's, such as, you can modify subfunctions/getBaseURL.m as required. The lists provide a one-line description of what each function does and links to further information for each function. You can do this by calling = spot.accountInfo and then checking that the response contains an HTTP status code of 200.Īt this point, I recommend generating a list of functions contained in the toolboxes by calling help spot, help pub, help cmargin and/or help imargin. Verify that the authentication works correctly. Make your public and private keys accessible via = getkeys(username) as follows: (i) copy your public and private keys into getkeys_Template.m (see: MATLAB-Binance-API/subfunctions/getkeys_Template.m) (ii) rename getkeys_Template.m to getkeys.m. Examples and comprehensive help documentation in all functions.ĭownload and place this folder in your MATLAB directory, then add it (and all its subfolders) to the user path.Filter errors give the corresponding filter requirements. 'max' quantity option for transfers/loans/repayments.Isolated margin trading (transfers, loans, repayments, orders).Cross margin trading (transfers, loans, repayments, orders).Load market data for large time ranges (pub.repAggTrades, pub.repKlines).Access all historical market data (from 1 week candles to individual trades).This repository is not affiliated with or in any way officially connected with The Mathworks Inc. This package supports spot and margin trading and all public endpoints. Suite of functions for accessing the Binance API via MATLAB (R2019b or later).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |