![]() ![]() 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.). #Binance api how toEach 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. #Binance api codeYou 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |