README.md

R API client for Binance

This Binance API client is in development, and the functionality has not been thoroughly tested. Use at your own risk.

OpenAPI Specifications for the Binance Public Spot API

API documents: - https://github.com/binance/binance-spot-api-docs - https://binance-docs.github.io/apidocs/spot/en

Overview

This API client was initially generated by the OpenAPI Generator project. By using the OpenAPI spec from a remote server, you can easily generate an API client.

Changes to the OpenAPI code

There have been some significant improvements made over the API Client automatically generated by OpenAPI Generator.

Authentication

Authentication has been embedded in the ApiClient class, so that the timestamp and signature do not need to be passed to functions as parameters, and the API key is retrieved automatically once it is set. Package keyring is used to store the API key and secret for the current user by running the setKey and setSecret functions of the Credentials class.

creds <- Credentials$new()
creds$setKey <- "Your API Key here"
creds$setSecret <- "Your API secret here"

Binance Testnet

Testing can be performed using the Binance Testnet server at https://testnet.binance.vision. The ApiClient model allows the user to specify the basePath, but to incorporate the authentication throughout the API client some changes have been made. The ApiClient is created using the testnet server by default, and users can change this to use the live Binance server by creating the ApiClient instance and setting test = FALSE. The Credentials model is also created using the testnet server credentials by default and can be changed to the live Binance server by setting test = FALSE.

# use the testnet server
credsTest <- Credentials()
apiTest <- ApiClient$new(credentials = credsTest)

# use the live server
creds <- Credentials(test = FALSE)
api <- ApiClient$new(credentials = creds, test = FALSE)

Websocket market stream

The websocket market stream is not automatically generated by the OpenAPI Generator. The WebSocketStream class and related classes have been built from the ground up to allow users to access the market data streams. To use the websocket streams, create a new WebSocketStream object, use the Subscribe method to subscribe to streams, and then access the data via the streamData field,

# start a new stream
webSocket <- WebSocketStream$new()

# subscribe to streams
webSocket$Subscribe(c("ticker", "trade"), c("BTCUSDT", "ETHBTC"))

# access the data via the streamData field
webSocket$streamData$`btcusdt@trade`

To subscribe to "all market" tickers, use the stream name including the exclamation (e.g., "!miniTicker") and do not supply a symbol,

# subscribe to an all market stream
webSocket$Subscribe("!miniTicker")

# access the data in the same way via the streamData field
webSocket$streamData$`!miniTicker@arr`

You can tell the websocket to perform additional operations when data are received by defining additional onMessage callback functions. For example, you might want to display a message, or save the data to a file. The callback function must take a single argument event. See ?websocket::WebSocket for more information.

# this function prints the name of the event that arrived
callbackFunction <- function(event) {
  payload <- jsonlite::fromJSON(event$data)
  cat("Event", payload$data$e, "occurred. \n")
}

# the (invisible) return value is a function that, when called, deregisters the onMessage callback. 
deregister <- webSocket$socket$onMessage(callbackFunction)

Websocket user stream

The same websocket model can be used to access the user data stream. The only difference is that a listen key must be generated first before subscribing to the stream. The following generates a listen key for the spot api, but a key can be generated for the margin api, or isolated margin api.

# generate the listen key
api <- ApiClient$new(test = FALSE)

# use StreamApi, MarginStreamApi, or IsolatedMarginStreamApi to generate listen key
stream <- StreamApi$new(apiClient = api)
response <- stream$ApiV3UserDataStreamPost()

# create a websocket object and subscribe to the listen key
webSocket <- WebSocketStream$new()
webSocket$Subscribe(response$listenKey)

# to keep the listen key alive longer than 60 minutes send a pong
stream$ApiV3UserDataStreamPut(listen.key = response$listenKey)

User data streams are only valid for 60 minutes, unless it is refreshed

Installation

Prerequisites

Install the dependencies

install.packages("jsonlite")
install.packages("httr")
install.packages("base64enc")
install.packages("digest")
install.packages("keyring")

Install the package

To install directly from Github, use devtools:

install.packages("devtools")
library(devtools)
install_github("grahamjwhite/binanceRapi")

Usage

library(binanceRapi)

Documentation for API Endpoints

All URIs are relative to https://api.binance.com

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- BLVTApi | SapiV1BlvtRedeemPost | POST /sapi/v1/blvt/redeem | Redeem BLVT (USER_DATA) BLVTApi | SapiV1BlvtRedeemRecordGet | GET /sapi/v1/blvt/redeem/record | Redemption Record (USER_DATA) BLVTApi | SapiV1BlvtSubscribePost | POST /sapi/v1/blvt/subscribe | Subscribe BLVT (USER_DATA) BLVTApi | SapiV1BlvtSubscribeRecordGet | GET /sapi/v1/blvt/subscribe/record | Query Subscription Record (USER_DATA) BLVTApi | SapiV1BlvtTokenInfoGet | GET /sapi/v1/blvt/tokenInfo | BLVT Info (MARKET_DATA) BLVTApi | SapiV1BlvtUserLimitGet | GET /sapi/v1/blvt/userLimit | BLVT User Limit Info (USER_DATA) BSwapApi | SapiV1BswapAddLiquidityPreviewGet | GET /sapi/v1/bswap/addLiquidityPreview | Add Liquidity Preview (USER_DATA) BSwapApi | SapiV1BswapLiquidityAddPost | POST /sapi/v1/bswap/liquidityAdd | Add Liquidity (TRADE) BSwapApi | SapiV1BswapLiquidityGet | GET /sapi/v1/bswap/liquidity | Liquidity information of a pool (USER_DATA) BSwapApi | SapiV1BswapLiquidityOpsGet | GET /sapi/v1/bswap/liquidityOps | Liquidity Operation Record (USER_DATA) BSwapApi | SapiV1BswapLiquidityRemovePost | POST /sapi/v1/bswap/liquidityRemove | Remove Liquidity (TRADE) BSwapApi | SapiV1BswapPoolConfigureGet | GET /sapi/v1/bswap/poolConfigure | Pool Configure (USER_DATA) BSwapApi | SapiV1BswapPoolsGet | GET /sapi/v1/bswap/pools | List All Swap Pools (MARKET_DATA) BSwapApi | SapiV1BswapQuoteGet | GET /sapi/v1/bswap/quote | Request Quote (USER_DATA) BSwapApi | SapiV1BswapRemoveLiquidityPreviewGet | GET /sapi/v1/bswap/removeLiquidityPreview | Remove Liquidity Preview (USER_DATA) BSwapApi | SapiV1BswapSwapGet | GET /sapi/v1/bswap/swap | Swap History (USER_DATA) BSwapApi | SapiV1BswapSwapPost | POST /sapi/v1/bswap/swap | Swap (TRADE) C2CApi | SapiV1C2cOrderMatchListUserOrderHistoryGet | GET /sapi/v1/c2c/orderMatch/listUserOrderHistory | Get C2C Trade History (USER_DATA) FiatApi | SapiV1FiatOrdersGet | GET /sapi/v1/fiat/orders | Fiat Deposit/Withdraw History (USER_DATA) FiatApi | SapiV1FiatPaymentsGet | GET /sapi/v1/fiat/payments | Fiat Payments History (USER_DATA) IsolatedMarginStreamApi | SapiV1UserDataStreamIsolatedDelete | DELETE /sapi/v1/userDataStream/isolated | Close a ListenKey (USER_STREAM) IsolatedMarginStreamApi | SapiV1UserDataStreamIsolatedPost | POST /sapi/v1/userDataStream/isolated | Generate a Listen Key (USER_STREAM) IsolatedMarginStreamApi | SapiV1UserDataStreamIsolatedPut | PUT /sapi/v1/userDataStream/isolated | Ping/Keep-alive a Listen Key (USER_STREAM) MarginApi | SapiV1BnbBurnGet | GET /sapi/v1/bnbBurn | Get All Isolated Margin Symbol(USER_DATA) MarginApi | SapiV1BnbBurnPost | POST /sapi/v1/bnbBurn | Toggle BNB Burn On Spot Trade And Margin Interest (USER_DATA) MarginApi | SapiV1MarginAccountGet | GET /sapi/v1/margin/account | Query Cross Margin Account Details (USER_DATA) MarginApi | SapiV1MarginAllAssetsGet | GET /sapi/v1/margin/allAssets | Get All Margin Assets (MARKET_DATA) MarginApi | SapiV1MarginAllOrderListGet | GET /sapi/v1/margin/allOrderList | Query Margin Account's all OCO (USER_DATA) MarginApi | SapiV1MarginAllOrdersGet | GET /sapi/v1/margin/allOrders | Query Margin Account's All Orders (USER_DATA) MarginApi | SapiV1MarginAllPairsGet | GET /sapi/v1/margin/allPairs | Get All Cross Margin Pairs (MARKET_DATA) MarginApi | SapiV1MarginAssetGet | GET /sapi/v1/margin/asset | Query Margin Asset (MARKET_DATA) MarginApi | SapiV1MarginForceLiquidationRecGet | GET /sapi/v1/margin/forceLiquidationRec | Get Force Liquidation Record (USER_DATA) MarginApi | SapiV1MarginInterestHistoryGet | GET /sapi/v1/margin/interestHistory | Get Interest History (USER_DATA) MarginApi | SapiV1MarginInterestRateHistoryGet | GET /sapi/v1/margin/interestRateHistory | Margin Interest Rate History (USER_DATA) MarginApi | SapiV1MarginIsolatedAccountDelete | DELETE /sapi/v1/margin/isolated/account | Disable Isolated Margin Account (TRADE) MarginApi | SapiV1MarginIsolatedAccountGet | GET /sapi/v1/margin/isolated/account | Query Isolated Margin Account Info (USER_DATA) MarginApi | SapiV1MarginIsolatedAccountLimitGet | GET /sapi/v1/margin/isolated/accountLimit | Query Enabled Isolated Margin Account Limit (USER_DATA) MarginApi | SapiV1MarginIsolatedAccountPost | POST /sapi/v1/margin/isolated/account | Enable Isolated Margin Account (TRADE) MarginApi | SapiV1MarginIsolatedAllPairsGet | GET /sapi/v1/margin/isolated/allPairs | Get All Isolated Margin Symbol(USER_DATA) MarginApi | SapiV1MarginIsolatedPairGet | GET /sapi/v1/margin/isolated/pair | Query Isolated Margin Symbol (USER_DATA) MarginApi | SapiV1MarginIsolatedTransferGet | GET /sapi/v1/margin/isolated/transfer | Get Isolated Margin Transfer History (USER_DATA) MarginApi | SapiV1MarginIsolatedTransferPost | POST /sapi/v1/margin/isolated/transfer | Isolated Margin Account Transfer (MARGIN) MarginApi | SapiV1MarginLoanGet | GET /sapi/v1/margin/loan | Query Loan Record (USER_DATA) MarginApi | SapiV1MarginLoanPost | POST /sapi/v1/margin/loan | Margin Account Borrow (MARGIN) MarginApi | SapiV1MarginMaxBorrowableGet | GET /sapi/v1/margin/maxBorrowable | Query Max Borrow (USER_DATA) MarginApi | SapiV1MarginMaxTransferableGet | GET /sapi/v1/margin/maxTransferable | Query Max Transfer-Out Amount (USER_DATA) MarginApi | SapiV1MarginMyTradesGet | GET /sapi/v1/margin/myTrades | Query Margin Account's Trade List (USER_DATA) MarginApi | SapiV1MarginOpenOrderListGet | GET /sapi/v1/margin/openOrderList | Query Margin Account's Open OCO (USER_DATA) MarginApi | SapiV1MarginOpenOrdersDelete | DELETE /sapi/v1/margin/openOrders | Margin Account Cancel all Open Orders on a Symbol (TRADE) MarginApi | SapiV1MarginOpenOrdersGet | GET /sapi/v1/margin/openOrders | Query Margin Account's Open Orders (USER_DATA) MarginApi | SapiV1MarginOrderDelete | DELETE /sapi/v1/margin/order | Margin Account Cancel Order (TRADE) MarginApi | SapiV1MarginOrderGet | GET /sapi/v1/margin/order | Query Margin Account's Order (USER_DATA) MarginApi | SapiV1MarginOrderListDelete | DELETE /sapi/v1/margin/orderList | Margin Account Cancel OCO (TRADE) MarginApi | SapiV1MarginOrderListGet | GET /sapi/v1/margin/orderList | Query Margin Account's OCO (USER_DATA) MarginApi | SapiV1MarginOrderOcoPost | POST /sapi/v1/margin/order/oco | Margin Account New OCO (TRADE) MarginApi | SapiV1MarginOrderPost | POST /sapi/v1/margin/order | Margin Account New Order (TRADE) MarginApi | SapiV1MarginPairGet | GET /sapi/v1/margin/pair | Query Cross Margin Pair (MARKET_DATA) MarginApi | SapiV1MarginPriceIndexGet | GET /sapi/v1/margin/priceIndex | Query Margin PriceIndex (MARKET_DATA) MarginApi | SapiV1MarginRepayGet | GET /sapi/v1/margin/repay | Query Repay Record (USER_DATA) MarginApi | SapiV1MarginRepayPost | POST /sapi/v1/margin/repay | Margin Account Repay (MARGIN) MarginApi | SapiV1MarginTransferGet | GET /sapi/v1/margin/transfer | Get Cross Margin Transfer History (USER_DATA) MarginApi | SapiV1MarginTransferPost | POST /sapi/v1/margin/transfer | Cross Margin Account Transfer (MARGIN) MarginStreamApi | SapiV1UserDataStreamDelete | DELETE /sapi/v1/userDataStream | Close a ListenKey (USER_STREAM) MarginStreamApi | SapiV1UserDataStreamPost | POST /sapi/v1/userDataStream | Create a ListenKey (USER_STREAM) MarginStreamApi | SapiV1UserDataStreamPut | PUT /sapi/v1/userDataStream | Ping/Keep-alive a ListenKey (USER_STREAM) MarketApi | ApiV3AggTradesGet | GET /api/v3/aggTrades | Compressed/Aggregate Trades List MarketApi | ApiV3AvgPriceGet | GET /api/v3/avgPrice | Current Average Price MarketApi | ApiV3DepthGet | GET /api/v3/depth | Order Book MarketApi | ApiV3ExchangeInfoGet | GET /api/v3/exchangeInfo | Exchange Information MarketApi | ApiV3HistoricalTradesGet | GET /api/v3/historicalTrades | Old Trade Lookup MarketApi | ApiV3KlinesGet | GET /api/v3/klines | Kline/Candlestick Data MarketApi | ApiV3PingGet | GET /api/v3/ping | Test Connectivity MarketApi | ApiV3Ticker24hrGet | GET /api/v3/ticker/24hr | 24hr Ticker Price Change Statistics MarketApi | ApiV3TickerBookTickerGet | GET /api/v3/ticker/bookTicker | Symbol Order Book Ticker MarketApi | ApiV3TickerPriceGet | GET /api/v3/ticker/price | Symbol Price Ticker MarketApi | ApiV3TimeGet | GET /api/v3/time | Check Server Time MarketApi | ApiV3TradesGet | GET /api/v3/trades | Recent Trades List MiningApi | SapiV1MiningHashTransferConfigCancelPost | POST /sapi/v1/mining/hash-transfer/config/cancel | Cancel Hashrate Resale configuration (USER_DATA) MiningApi | SapiV1MiningHashTransferConfigDetailsListGet | GET /sapi/v1/mining/hash-transfer/config/details/list | Hashrate Resale List (USER_DATA) MiningApi | SapiV1MiningHashTransferConfigPost | POST /sapi/v1/mining/hash-transfer/config | Hashrate Resale Request (USER_DATA) MiningApi | SapiV1MiningHashTransferProfitDetailsGet | GET /sapi/v1/mining/hash-transfer/profit/details | Hashrate Resale Details (USER_DATA) MiningApi | SapiV1MiningPaymentListGet | GET /sapi/v1/mining/payment/list | Earnings List (USER_DATA) MiningApi | SapiV1MiningPaymentOtherGet | GET /sapi/v1/mining/payment/other | Extra Bonus List (USER_DATA) MiningApi | SapiV1MiningPubAlgoListGet | GET /sapi/v1/mining/pub/algoList | Acquiring Algorithm (MARKET_DATA) MiningApi | SapiV1MiningPubCoinListGet | GET /sapi/v1/mining/pub/coinList | Acquiring CoinName (MARKET_DATA) MiningApi | SapiV1MiningStatisticsUserListGet | GET /sapi/v1/mining/statistics/user/list | Account List (USER_DATA) MiningApi | SapiV1MiningStatisticsUserStatusGet | GET /sapi/v1/mining/statistics/user/status | Statistic List (USER_DATA) MiningApi | SapiV1MiningWorkerDetailGet | GET /sapi/v1/mining/worker/detail | Request for Detail Miner List (USER_DATA) MiningApi | SapiV1MiningWorkerListGet | GET /sapi/v1/mining/worker/list | Request for Miner List (USER_DATA) SavingsApi | SapiV1LendingCustomizedFixedPurchasePost | POST /sapi/v1/lending/customizedFixed/purchase | Purchase Fixed/Activity Project (USER_DATA) SavingsApi | SapiV1LendingDailyProductListGet | GET /sapi/v1/lending/daily/product/list | Get Flexible Product List (USER_DATA) SavingsApi | SapiV1LendingDailyPurchasePost | POST /sapi/v1/lending/daily/purchase | Purchase Flexible Product (USER_DATA) SavingsApi | SapiV1LendingDailyRedeemPost | POST /sapi/v1/lending/daily/redeem | Redeem Flexible Product (USER_DATA) SavingsApi | SapiV1LendingDailyTokenPositionGet | GET /sapi/v1/lending/daily/token/position | Get Flexible Product Position (USER_DATA) SavingsApi | SapiV1LendingDailyUserLeftQuotaGet | GET /sapi/v1/lending/daily/userLeftQuota | Get Left Daily Purchase Quota of Flexible Product (USER_DATA) SavingsApi | SapiV1LendingDailyUserRedemptionQuotaGet | GET /sapi/v1/lending/daily/userRedemptionQuota | Get Left Daily Redemption Quota of Flexible Product (USER_DATA) SavingsApi | SapiV1LendingPositionChangedPost | POST /sapi/v1/lending/positionChanged | Change Fixed/Activity Position to Daily Position (USER_DATA) SavingsApi | SapiV1LendingProjectListGet | GET /sapi/v1/lending/project/list | Get Fixed/Activity Project List(USER_DATA) SavingsApi | SapiV1LendingProjectPositionListGet | GET /sapi/v1/lending/project/position/list | Get Fixed/Activity Project Position (USER_DATA) SavingsApi | SapiV1LendingUnionAccountGet | GET /sapi/v1/lending/union/account | Lending Account (USER_DATA) SavingsApi | SapiV1LendingUnionInterestHistoryGet | GET /sapi/v1/lending/union/interestHistory | Get Interest History (USER_DATA) SavingsApi | SapiV1LendingUnionPurchaseRecordGet | GET /sapi/v1/lending/union/purchaseRecord | Get Purchase Record (USER_DATA) SavingsApi | SapiV1LendingUnionRedemptionRecordGet | GET /sapi/v1/lending/union/redemptionRecord | Get Redemption Record (USER_DATA) StreamApi | ApiV3UserDataStreamDelete | DELETE /api/v3/userDataStream | Close a ListenKey (USER_STREAM) StreamApi | ApiV3UserDataStreamPost | POST /api/v3/userDataStream | Create a ListenKey (USER_STREAM) StreamApi | ApiV3UserDataStreamPut | PUT /api/v3/userDataStream | Ping/Keep-alive a ListenKey (USER_STREAM) SubAccountApi | SapiV1CapitalDepositSubAddressGet | GET /sapi/v1/capital/deposit/subAddress | Sub-account Spot Assets Summary (For Master Account) SubAccountApi | SapiV1CapitalDepositSubHisrecGet | GET /sapi/v1/capital/deposit/subHisrec | Sub-account Deposit History (For Master Account) SubAccountApi | SapiV1ManagedSubaccountAssetGet | GET /sapi/v1/managed-subaccount/asset | Managed sub-account asset details(For Investor Master Account) SubAccountApi | SapiV1ManagedSubaccountDepositPost | POST /sapi/v1/managed-subaccount/deposit | Deposit assets into the managed sub-account(For Investor Master Account) SubAccountApi | SapiV1ManagedSubaccountWithdrawPost | POST /sapi/v1/managed-subaccount/withdraw | Withdrawl assets from the managed sub-account(For Investor Master Account) SubAccountApi | SapiV1SubAccountBlvtEnablePost | POST /sapi/v1/sub-account/blvt/enable | Enable Leverage Token for Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountFuturesAccountGet | GET /sapi/v1/sub-account/futures/account | Detail on Sub-account's Futures Account (For Master Account) SubAccountApi | SapiV1SubAccountFuturesAccountSummaryGet | GET /sapi/v1/sub-account/futures/accountSummary | Summary of Sub-account's Futures Account (For Master Account) SubAccountApi | SapiV1SubAccountFuturesEnablePost | POST /sapi/v1/sub-account/futures/enable | Enable Futures for Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountFuturesInternalTransferGet | GET /sapi/v1/sub-account/futures/internalTransfer | Sub-account Futures Asset Transfer History (For Master Account) SubAccountApi | SapiV1SubAccountFuturesInternalTransferPost | POST /sapi/v1/sub-account/futures/internalTransfer | Sub-account Futures Asset Transfer (For Master Account) SubAccountApi | SapiV1SubAccountFuturesPositionRiskGet | GET /sapi/v1/sub-account/futures/positionRisk | Futures Position-Risk of Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountFuturesTransferPost | POST /sapi/v1/sub-account/futures/transfer | Transfer for Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountListGet | GET /sapi/v1/sub-account/list | Query Sub-account List (For Master Account) SubAccountApi | SapiV1SubAccountMarginAccountGet | GET /sapi/v1/sub-account/margin/account | Detail on Sub-account's Margin Account (For Master Account) SubAccountApi | SapiV1SubAccountMarginAccountSummaryGet | GET /sapi/v1/sub-account/margin/accountSummary | Summary of Sub-account's Margin Account (For Master Account) SubAccountApi | SapiV1SubAccountMarginEnablePost | POST /sapi/v1/sub-account/margin/enable | Enable Margin for Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountMarginTransferPost | POST /sapi/v1/sub-account/margin/transfer | Margin Transfer for Sub-account (For Master Account) SubAccountApi | SapiV1SubAccountSpotSummaryGet | GET /sapi/v1/sub-account/spotSummary | Sub-account Spot Assets Summary (For Master Account) SubAccountApi | SapiV1SubAccountStatusGet | GET /sapi/v1/sub-account/status | Sub-account's Status on Margin/Futures (For Master Account) SubAccountApi | SapiV1SubAccountSubTransferHistoryGet | GET /sapi/v1/sub-account/sub/transfer/history | Sub-account Spot Asset Transfer History (For Master Account) SubAccountApi | SapiV1SubAccountTransferSubToMasterPost | POST /sapi/v1/sub-account/transfer/subToMaster | Transfer to Master (For Sub-account) SubAccountApi | SapiV1SubAccountTransferSubToSubPost | POST /sapi/v1/sub-account/transfer/subToSub | Transfer to Sub-account of Same Master (For Sub-account) SubAccountApi | SapiV1SubAccountTransferSubUserHistoryGet | GET /sapi/v1/sub-account/transfer/subUserHistory | Sub-account Transfer History (For Sub-account) SubAccountApi | SapiV1SubAccountUniversalTransferGet | GET /sapi/v1/sub-account/universalTransfer | Universal Transfer History (For Master Account) SubAccountApi | SapiV1SubAccountUniversalTransferPost | POST /sapi/v1/sub-account/universalTransfer | Universal Transfer (For Master Account) SubAccountApi | SapiV1SubAccountVirtualSubAccountPost | POST /sapi/v1/sub-account/virtualSubAccount | Create a Virtual Sub-account(For Master Account) SubAccountApi | SapiV2SubAccountFuturesAccountGet | GET /sapi/v2/sub-account/futures/account | Detail on Sub-account's Futures Account V2 (For Master Account) SubAccountApi | SapiV2SubAccountFuturesAccountSummaryGet | GET /sapi/v2/sub-account/futures/accountSummary | Summary of Sub-account's Futures Account V2 (For Master Account) SubAccountApi | SapiV2SubAccountFuturesPositionRiskGet | GET /sapi/v2/sub-account/futures/positionRisk | Futures Position-Risk of Sub-account V2 (For Master Account) SubAccountApi | SapiV3SubAccountAssetsGet | GET /sapi/v3/sub-account/assets | Sub-account Assets (For Master Account) TradeApi | ApiV3AccountGet | GET /api/v3/account | Account Information (USER_DATA) TradeApi | ApiV3AllOrderListGet | GET /api/v3/allOrderList | Query all OCO (USER_DATA) TradeApi | ApiV3AllOrdersGet | GET /api/v3/allOrders | All Orders (USER_DATA) TradeApi | ApiV3MyTradesGet | GET /api/v3/myTrades | Account Trade List (USER_DATA) TradeApi | ApiV3OpenOrderListGet | GET /api/v3/openOrderList | Query Open OCO (USER_DATA) TradeApi | ApiV3OpenOrdersDelete | DELETE /api/v3/openOrders | Cancel all Open Orders on a Symbol (TRADE) TradeApi | ApiV3OpenOrdersGet | GET /api/v3/openOrders | Current Open Orders (USER_DATA) TradeApi | ApiV3OrderDelete | DELETE /api/v3/order | Cancel Order (TRADE) TradeApi | ApiV3OrderGet | GET /api/v3/order | Query Order (USER_DATA) TradeApi | ApiV3OrderListDelete | DELETE /api/v3/orderList | Cancel OCO (TRADE) TradeApi | ApiV3OrderListGet | GET /api/v3/orderList | Query OCO (USER_DATA) TradeApi | ApiV3OrderOcoPost | POST /api/v3/order/oco | New OCO (TRADE) TradeApi | ApiV3OrderPost | POST /api/v3/order | New Order (TRADE) TradeApi | ApiV3OrderTestPost | POST /api/v3/order/test | Test New Order (TRADE) TradeApi | ApiV3RateLimitOrderGet | GET /api/v3/rateLimit/order | Query Current Order Count Usage (TRADE) WalletApi | SapiV1AccountApiRestrictionsGet | GET /sapi/v1/account/apiRestrictions | Get API Key Permission (USER_DATA) WalletApi | SapiV1AccountApiTradingStatusGet | GET /sapi/v1/account/apiTradingStatus | Account API Trading Status (USER_DATA) WalletApi | SapiV1AccountDisableFastWithdrawSwitchPost | POST /sapi/v1/account/disableFastWithdrawSwitch | Disable Fast Withdraw Switch (USER_DATA) WalletApi | SapiV1AccountEnableFastWithdrawSwitchPost | POST /sapi/v1/account/enableFastWithdrawSwitch | Enable Fast Withdraw Switch (USER_DATA) WalletApi | SapiV1AccountSnapshotGet | GET /sapi/v1/accountSnapshot | Daily Account Snapshot (USER_DATA) WalletApi | SapiV1AccountStatusGet | GET /sapi/v1/account/status | Account Status (USER_DATA) WalletApi | SapiV1AssetAssetDetailGet | GET /sapi/v1/asset/assetDetail | Asset Detail (USER_DATA) WalletApi | SapiV1AssetAssetDividendGet | GET /sapi/v1/asset/assetDividend | Asset Dividend Record (USER_DATA) WalletApi | SapiV1AssetDribbletGet | GET /sapi/v1/asset/dribblet | DustLog(USER_DATA) WalletApi | SapiV1AssetDustPost | POST /sapi/v1/asset/dust | Dust Transfer (USER_DATA) WalletApi | SapiV1AssetGetFundingAssetPost | POST /sapi/v1/asset/get-funding-asset | Funding Wallet (USER_DATA) WalletApi | SapiV1AssetTradeFeeGet | GET /sapi/v1/asset/tradeFee | Trade Fee (USER_DATA) WalletApi | SapiV1AssetTransferGet | GET /sapi/v1/asset/transfer | Query User Universal Transfer History (USER_DATA) WalletApi | SapiV1AssetTransferPost | POST /sapi/v1/asset/transfer | User Universal Transfer (USER_DATA) WalletApi | SapiV1CapitalConfigGetallGet | GET /sapi/v1/capital/config/getall | All Coins' Information (USER_DATA) WalletApi | SapiV1CapitalDepositAddressGet | GET /sapi/v1/capital/deposit/address | Deposit Address (supporting network) (USER_DATA) WalletApi | SapiV1CapitalDepositHisrecGet | GET /sapi/v1/capital/deposit/hisrec | Deposit History(supporting network) (USER_DATA) WalletApi | SapiV1CapitalWithdrawApplyPost | POST /sapi/v1/capital/withdraw/apply | Withdraw (USER_DATA) WalletApi | SapiV1CapitalWithdrawHistoryGet | GET /sapi/v1/capital/withdraw/history | Withdraw History (supporting network) (USER_DATA) WalletApi | SapiV1SystemStatusGet | GET /sapi/v1/system/status | System Status (System)

Documentation for Models

Author



grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.