Binance_interface API函数接口总览
1. 现货 SPOT
python
from binance_interface.api import SPOT
1.1 账户接口 SPOTAccount
python
from binance_interface.api.spot import SPOTAccount
方法 | 解释 | Path |
---|---|---|
get_account | 账户信息 | /api/v3/account |
get_myTrades | 账户成交历史 | /api/v3/myTrades |
get_rateLimit_order | 查询目前下单数 | /api/v3/rateLimit/order |
get_myPreventedMatches | 获取 Prevented Matches | /api/v3/myPreventedMatches |
get_myAllocations | 查询分配结果 | /api/v3/myAllocations |
get_account_commission | 查询佣金费率 (USER_DATA) | /api/v3/account/commission |
1.2 策略交易接口 SPOTAlgo
python
from binance_interface.api.spot import SPOTAlgo
方法 | 解释 | Path |
---|---|---|
set_algo_spot_newOrderTwap | 时间加权平均价格策略(Twap)下单 | /sapi/v1/algo/spot/newOrderTwap |
cancel_algo_spot_order | 取消TWAP策略订单 | /sapi/v1/algo/spot/order |
get_algo_spot_openOrders | 查询当前策略订单挂单 | /sapi/v1/algo/spot/openOrders |
get_algo_spot_historicalOrders | 查询历史策略订单 | /sapi/v1/algo/spot/historicalOrders |
get_algo_spot_subOrders | 查询执行子订单 (USER_DATA) | /sapi/v1/algo/spot/subOrders |
1.3 行情接口 SPOTMarket
python
from binance_interface.api.spot import SPOTMarket
方法 | 解释 | Path |
---|---|---|
get_ping | 测试服务器连通性 | /api/v3/ping |
get_time | 获取服务器时间 | /api/v3/time |
get_exchangeInfo | 交易规范信息 | /api/v3/exchangeInfo |
get_depth | 深度信息 | /api/v3/depth |
get_trades | 近期成交列表 | /api/v3/trades |
get_historicalTrades | 查询历史成交 | /api/v3/historicalTrades |
get_aggTrades | 近期成交(归集) | /api/v3/aggTrades |
get_klines | K线数据 | /api/v3/klines |
get_avgPrice | 当前平均价格 | /api/v3/avgPrice |
get_uiKlines | UIK线数据 | /api/v3/uiKlines |
get_ticker_24hr | 24hr 价格变动情况 | /api/v3/ticker/24hr |
get_ticker_tradingDay | 交易日行情(Ticker) | /api/v3/ticker/tradingDay |
get_ticker_price | 最新价格 | /api/v3/ticker/price |
get_ticker_bookTicker | 当前最优挂单 | /api/v3/ticker/bookTicker |
get_ticker | 滚动窗口价格变动统计 | /api/v3/ticker |
1.4 交易接口 SPOTTrade
python
from binance_interface.api.spot import SPOTTrade
方法 | 解释 | Path |
---|---|---|
set_order_test | 测试下单 | /api/v3/order/test |
set_order | 下单 | /api/v3/order |
cancel_order | 撤销订单 | /api/v3/order |
cancel_openOrders | 撤销单一交易对的所有挂单 | /api/v3/openOrders |
set_order_cancelReplace | 撤消挂单再下单 | /api/v3/order/cancelReplace |
get_order | 查询订单 | /api/v3/order |
get_openOrders | 当前挂单 | /api/v3/openOrders |
get_allOrders | 查询所有订单 | /api/v3/allOrders |
set_order_oco | OCO下单 | /api/v3/order/oco |
cancel_orderList | 取消 OCO 订单 | /api/v3/orderList |
get_orderList | 查询 OCO | /api/v3/orderList |
get_allOrderList | 查询所有 OCO | /api/v3/allOrderList |
get_openOrderList | 查询 OCO 挂单 | /api/v3/openOrderList |
set_sor_order | 下 SOR 订单 | /api/v3/sor/order |
set_sor_order_test | 测试 SOR 下单接口 (TRADE) | /api/v3/sor/order/test |
2. U本位合约 UM
python
from binance_interface.api.um import UM
2.1 账户和交易接口 UMAccountTrade
python
from binance_interface.api.um import UMAccountTrade
方法 | 解释 | Path |
---|---|---|
set_positionSide_dual | 更改持仓模式 | /fapi/v1/positionSide/dual |
get_positionSide_dual | 查询持仓模式 | /fapi/v1/positionSide/dual |
set_multiAssetsMargin | 更改联合保证金模式 | /fapi/v1/multiAssetsMargin |
get_multiAssetsMargin | 查询联合保证金模式 | /fapi/v1/multiAssetsMargin |
set_order | 下单 | /fapi/v1/order |
set_order_test | 测试下单接口 (TRADE) | /fapi/v1/order/test |
alter_order | 修改订单 | /fapi/v1/order |
set_batchOrders | 批量下单 | /fapi/v1/batchOrders |
alter_batchOrders | 批量修改订单 | /fapi/v1/batchOrders |
get_orderAmendment | 查询订单修改历史 | /fapi/v1/orderAmendment |
get_order | 查询订单 | /fapi/v1/order |
cancel_order | 撤销订单 | /fapi/v1/order |
cancel_allOpenOrders | 撤销全部订单 | /fapi/v1/allOpenOrders |
cancel_batchOrders | 批量撤销订单 | /fapi/v1/batchOrders |
set_countdownCancelAll | 倒计时撤销所有订单 | /fapi/v1/countdownCancelAll |
get_openOrder | 查询当前挂单 | /fapi/v1/openOrder |
get_openOrders | 查看当前全部挂单 | /fapi/v1/openOrders |
get_allOrders | 查询所有订单(包括历史订单) | /fapi/v1/allOrders |
get_balance | 账户余额V2 | /fapi/v2/balance |
get_account | 账户信息V2 | /fapi/v2/account |
set_leverage | 调整开仓杠杆 | /fapi/v1/leverage |
set_marginType | 变换逐全仓模式 | /fapi/v1/marginType |
set_positionMargin | 调整逐仓保证金 | /fapi/v1/positionMargin |
get_positionMargin_history | 逐仓保证金变动历史 | /fapi/v1/positionMargin/history |
get_positionRisk | 用户持仓风险V2 | /fapi/v2/positionRisk |
get_userTrades | 账户成交历史 | /fapi/v1/userTrades |
get_income | 获取账户损益资金流水 | /fapi/v1/income |
get_leverageBracket | 杠杆分层标准 | /fapi/v1/leverageBracket |
get_adlQuantile | 持仓ADL队列估算 | /fapi/v1/adlQuantile |
get_forceOrders | 用户强平单历史 | /fapi/v1/forceOrders |
get_apiTradingStatus | 合约交易量化规则指标 | /fapi/v1/apiTradingStatus |
get_commissionRate | 用户手续费率 | /fapi/v1/commissionRate |
get_income_asyn | 获取合约资金流水下载Id | /fapi/v1/income/asyn |
get_income_asyn_id | 通过下载Id获取合约资金流水下载链接 | /fapi/v1/income/asyn/id |
get_order_asyn | 获取合约订单历史下载Id | /fapi/v1/order/asyn |
get_order_asyn_id | 通过下载Id获取合约订单下载链接 | /fapi/v1/order/asyn/id |
get_trade_asyn | 获取合约交易历史下载Id | /fapi/v1/trade/asyn |
get_trade_asyn_id | 通过下载Id获取合约交易历史下载链接 (USER_DATA) | /fapi/v1/trade/asyn/id |
2.2 行情接口 UMMarket
python
from binance_interface.api.um import UMMarket
方法 | 解释 | Path |
---|---|---|
get_ping | 测试服务器连通性 PING | /fapi/v1/ping |
get_time | 获取服务器时间 | /fapi/v1/time |
get_exchangeInfo | 获取交易规则和交易对 | /fapi/v1/exchangeInfo |
get_depth | 深度信息 | /fapi/v1/depth |
get_trades | 近期成交 | /fapi/v1/trades |
get_historicalTrades | 查询历史成交(MARKET_DATA) | /fapi/v1/historicalTrades |
get_aggTrades | 近期成交(归集) | /fapi/v1/aggTrades |
get_klines | K线数据 | /fapi/v1/klines |
get_continuousKlines | 连续合约K线数据 | /fapi/v1/continuousKlines |
get_indexPriceKlines | 价格指数K线数据 | /fapi/v1/indexPriceKlines |
get_markPriceKlines | 标记价格K线数据 | /fapi/v1/markPriceKlines |
get_premiumIndexKlines | 溢价指数K线数据 | /fapi/v1/premiumIndexKlines |
get_premiumIndex | 最新标记价格和资金费率 | /fapi/v1/premiumIndex |
get_fundingRate | 查询资金费率历史 | /fapi/v1/fundingRate |
get_fundingInfo | 查询资金费率信息 | /fapi/v1/fundingInfo |
get_ticker_24hr | 24hr价格变动情况 | /fapi/v1/ticker/24hr |
get_ticker_price_v1 | 最新价格 | /fapi/v1/ticker/price |
get_ticker_price | 最新价格V2 | /fapi/v2/ticker/price |
get_ticker_bookTicker | 当前最优挂单 | /fapi/v1/ticker/bookTicker |
get_openInterest | 获取未平仓合约数 | /fapi/v1/openInterest |
get_delivery_price | 季度合约历史结算价 | /futures/data/delivery-price |
get_openInterestHist | 合约持仓量 | /futures/data/openInterestHist |
get_topLongShortAccountRatio | 大户账户数多空比 | /futures/data/topLongShortAccountRatio |
get_topLongShortPositionRatio | 大户持仓量多空比 | /futures/data/topLongShortPositionRatio |
get_globalLongShortAccountRatio | 多空持仓人数比 | /futures/data/globalLongShortAccountRatio |
get_takerlongshortRatio | 合约主动买卖量 | /futures/data/takerlongshortRatio |
get_basis | 基差 | /futures/data/basis |
get_lvtKlines | 杠杆代币历史净值K线 | /fapi/v1/lvtKlines |
get_indexInfo | 综合指数交易对信息 | /fapi/v1/indexInfo |
get_assetIndex | 多资产模式资产汇率指数 | /fapi/v1/assetIndex |
get_constituents | 查询指数价格成分 | /fapi/v1/constituents |
2.3 经典统一账户 UMPortfolio
python
from binance_interface.api.um import UMPortfolio
方法 | 解释 | Path |
---|---|---|
get_pmAccountInfo | 查询经典统一账户账户信息 (USER_DATA) | /fapi/v1/pmAccountInfo |
3. 币本位合约 CM
python
from binance_interface.api.cm import CM
3.1 账户和交易接口 CMAccountTrade
python
from binance_interface.api.cm import CMAccountTrade
方法 | 解释 | Path |
---|---|---|
set_positionSide_dual | 更改持仓模式 | /dapi/v1/positionSide/dual |
get_positionSide_dual | 查询持仓模式 | /dapi/v1/positionSide/dual |
set_order | 下单 | /dapi/v1/order |
set_order_test | 测试下单接口 (TRADE) | /dapi/v1/order/test |
alter_order | 修改订单 | /dapi/v1/order |
set_batchOrders | 批量下单 | /dapi/v1/batchOrders |
alter_batchOrders | 批量修改订单 | /dapi/v1/batchOrders |
get_orderAmendment | 查询订单修改历史 | /dapi/v1/orderAmendment |
get_order | 查询订单 | /dapi/v1/order |
cancel_order | 撤销订单 | /dapi/v1/order |
cancel_allOpenOrders | 撤销全部订单 | /dapi/v1/allOpenOrders |
cancel_batchOrders | 批量撤销订单 | /dapi/v1/batchOrders |
set_countdownCancelAll | 倒计时撤销所有订单 | /dapi/v1/countdownCancelAll |
get_openOrder | 查询当前挂单 | /dapi/v1/openOrder |
get_openOrders | 查看当前全部挂单 | /dapi/v1/openOrders |
get_allOrders | 查询所有订单(包括历史订单) | /dapi/v1/allOrders |
get_balance | 账户余额 | /dapi/v1/balance |
get_account | 账户信息 | /dapi/v1/account |
set_leverage | 调整开仓杠杆 | /dapi/v1/leverage |
set_marginType | 变换逐全仓模式 | /dapi/v1/marginType |
set_positionMargin | 调整逐仓保证金 | /dapi/v1/positionMargin |
get_positionMargin_history | 逐仓保证金变动历史 | /dapi/v1/positionMargin/history |
get_positionRisk | 用户持仓风险 | /dapi/v1/positionRisk |
get_userTrades | 账户成交历史 | /dapi/v1/userTrades |
get_income | 获取账户损益资金流水 | /dapi/v1/income |
get_leverageBracket_by_pair | 标的交易对默认杠杆分层标准 (USER_DATA) | /dapi/v2/leverageBracket |
get_leverageBracket_by_symbol | 交易对杠杆分层标准 (USER_DATA) | /dapi/v2/leverageBracket |
get_forceOrders | 用户强平单历史 | /dapi/v1/forceOrders |
get_adlQuantile | 持仓ADL队列估算 | /dapi/v1/adlQuantile |
get_commissionRate | 用户手续费率 | /dapi/v1/commissionRate |
get_income_asyn | 获取合约资金流水下载Id | /dapi/v1/income/asyn |
get_income_asyn_id | 通过下载Id获取合约资金流水下载链接 (USER_DATA) | /dapi/v1/income/asyn/id |
3.2 行情接口 CMMarket
python
from binance_interface.api.cm import CMMarket
方法 | 解释 | Path |
---|---|---|
get_ping | 测试服务器连通性 PING | /dapi/v1/ping |
get_time | 获取服务器时间 | /dapi/v1/time |
get_exchangeInfo | 获取交易规则和交易对 | /dapi/v1/exchangeInfo |
get_depth | 深度信息 | /dapi/v1/depth |
get_trades | 近期成交 | /dapi/v1/trades |
get_historicalTrades | 查询历史成交 (MARKET_DATA) | /dapi/v1/historicalTrades |
get_aggTrades | 近期成交(归集) | /dapi/v1/aggTrades |
get_premiumIndex | 最新现货指数价格和Mark Price | /dapi/v1/premiumIndex |
get_fundingRate | 查询永续合约资金费率历史 | /dapi/v1/fundingRate |
get_fundingInfo | 查询资金费率信息 | /dapi/v1/fundingInfo |
get_klines | K线数据 | /dapi/v1/klines |
get_continuousKlines | 连续合约K线数据 | /dapi/v1/continuousKlines |
get_indexPriceKlines | 价格指数K线数据 | /dapi/v1/indexPriceKlines |
get_markPriceKlines | 标记价格K线数据 | /dapi/v1/markPriceKlines |
get_premiumIndexKlines | 溢价指数K线数据 | /dapi/v1/premiumIndexKlines |
get_ticker_24hr | 24hr价格变动情况 | /dapi/v1/ticker/24hr |
get_ticker_price | 最新价格 | /dapi/v1/ticker/price |
get_ticker_bookTicker | 当前最优挂单 | /dapi/v1/ticker/bookTicker |
get_constituents | 查询指数价格成分 | /dapi/v1/constituents |
get_openInterest | 获取未平仓合约数 | /dapi/v1/openInterest |
get_delivery_price | 季度合约历史结算价 | /futures/data/delivery-price |
get_openInterestHist | 合约持仓量 | /futures/data/openInterestHist |
get_topLongShortAccountRatio | 大户账户数多空比 | /futures/data/topLongShortAccountRatio |
get_topLongShortPositionRatio | 大户持仓量多空比 | /futures/data/topLongShortPositionRatio |
get_globalLongShortAccountRatio | 多空持仓人数比 | /futures/data/globalLongShortAccountRatio |
get_takerBuySellVol | 合约主动买卖量 | /futures/data/takerBuySellVol |
get_basis | 基差 | /futures/data/basis |
3.3 经典统一账户接口 CMPortfolio
python
from binance_interface.api.cm import CMPortfolio
方法 | 解释 | Path |
---|---|---|
get_pmExchangeInfo | 查询经典统一账户Notional Limit | /dapi/v1/pmExchangeInfo |
get_pmAccountInfo | 查询经典统一账户账户信息 (USER_DATA) | /dapi/v1/pmAccountInfo |
4. 欧式期权 EO
python
from binance_interface.api.eo import EO
4.1 账户和交易接口 EOAccountTrade
python
from binance_interface.api.eo import EOAccountTrade
方法 | 解释 | Path |
---|---|---|
get_account | 账户信息 | /eapi/v1/account |
set_order | 下单 | /eapi/v1/order |
set_batchOrders | 批量下单 | /eapi/v1/batchOrders |
get_order | 查询单个订单 | /eapi/v1/order |
cancel_order | 撤销订单 | /eapi/v1/order |
cancel_batchOrders | 批量撤销订单 | /eapi/v1/batchOrders |
cancel_allOpenOrders | 撤销单交易对全部订单 | /eapi/v1/allOpenOrders |
cancel_allOpenOrdersByUnderlying | 撤销特定标的全部订单 | /eapi/v1/allOpenOrdersByUnderlying |
get_openOrders | 查询当前挂单 | /eapi/v1/openOrders |
get_historyOrders | 查询历史订单 | /eapi/v1/historyOrders |
get_position | 仓位信息 | /eapi/v1/position |
get_userTrades | 账户成交历史 | /eapi/v1/userTrades |
get_exerciseRecord | 用户行权历史 | /eapi/v1/exerciseRecord |
get_bill | 获取账户资金流水 | /eapi/v1/bill |
get_income_asyn | 获取期权资金流水下载Id | /eapi/v1/income/asyn |
get_income_asyn_id | 通过下载Id获取合约资金流水下载链接 (USER_DATA) | /eapi/v1/income/asyn/id |
4.2 行情接口 EOMarket
python
from binance_interface.api.eo import EOMarket
方法 | 解释 | Path |
---|---|---|
get_ping | 测试服务器连通性 PING【 | /eapi/v1/ping |
get_time | 获取服务器时间【 | /eapi/v1/time |
get_exchangeInfo | 获取交易规则和交易对【 | /eapi/v1/exchangeInfo |
get_depth | 深度信息 | /eapi/v1/depth |
get_trades | 近期成交 | /eapi/v1/trades |
get_historicalTrades | 查询历史成交(MARKET_DATA) | /eapi/v1/historicalTrades |
get_klines | K线数据 | /eapi/v1/klines |
get_mark | 查询期权标记价格 | /eapi/v1/mark |
get_ticker | 24hr价格变动情况 | /eapi/v1/ticker |
get_index | 标的最新价格 | /eapi/v1/index |
get_exerciseHistory | 历史行权记录 | /eapi/v1/exerciseHistory |
get_openInterest | 合约持仓量 | /eapi/v1/openInterest |
4.3 做市商接口 EOMarketMaker
python
from binance_interface.api.eo import EOMarketMaker
方法 | 解释 | Path |
---|---|---|
get_marginAccount | 保证金账户信息 | /eapi/v1/marginAccount |
set_mmpSet | 设置MMP规则 | /eapi/v1/mmpSet |
get_mmpSet | 获取MMP规则 | /eapi/v1/mmpSet |
set_mmpReset | 重置MMP状态 | /eapi/v1/mmpReset |
set_countdownCancelAll | 设置倒计时取消所有订单配置 | /eapi/v1/countdownCancelAll |
get_countdownCancelAll | 获得倒计时自动取消所有订单配置 | /eapi/v1/countdownCancelAll |
set_countdownCancelAllHeartBeat | 重置倒计时取消所有订单心跳 (TRADE) | /eapi/v1/countdownCancelAllHeartBeat |
5 杠杆 Margin
python
from binance_interface.api.margin import Margin
5.1 杠杆账户和交易接口 MarginAccountTrade
python
from binance_interface.api.margin import MarginAccountTrade
方法 | 解释 | Path |
---|---|---|
set_margin_transfer | 全仓杠杆账户划转 (MARGIN) | /sapi/v1/margin/transfer |
set_margin_loan | 杠杆账户借贷 (MARGIN) | /sapi/v1/margin/loan |
set_margin_repay | 杠杆账户归还借贷 (MARGIN) | /sapi/v1/margin/repay |
get_margin_asset | 查询杠杆资产 (MARKET_DATA) | /sapi/v1/margin/asset |
get_margin_pair | 查询全仓杠杆交易对 (MARKET_DATA) | /sapi/v1/margin/pair |
get_margin_allAssets | 获取所有杠杆资产信息 (MARKET_DATA) | /sapi/v1/margin/allAssets |
get_margin_allPairs | 获取所有全仓杠杆交易对(MARKET_DATA) | /sapi/v1/margin/allPairs |
get_margin_priceIndex | 查询杠杆价格指数 (MARKET_DATA) | /sapi/v1/margin/priceIndex |
set_margin_order | 杠杆账户下单 | /sapi/v1/margin/order |
cancel_margin_order | 杠杆账户撤销订单 | /sapi/v1/margin/order |
cancel_margin_openOrders | 杠杆账户撤销单一交易对的所有挂单 | /sapi/v1/margin/openOrders |
set_margin_max_leverage | 调整全仓最大杠杆 | /sapi/v1/margin/max-leverage |
get_margin_transfer | 获取全仓杠杆划转历史 | /sapi/v1/margin/transfer |
get_margin_loan | 查询借贷记录 | /sapi/v1/margin/loan |
get_margin_repay | 查询还贷记录 | /sapi/v1/margin/repay |
get_margin_interestHistory | 获取利息历史 | /sapi/v1/margin/interestHistory |
get_margin_forceLiquidationRec | 获取账户强制平仓记录 | /sapi/v1/margin/forceLiquidationRec |
get_margin_account | 查询全仓杠杆账户详情 | /sapi/v1/margin/account |
get_margin_order | 查询杠杆账户订单 | /sapi/v1/margin/order |
get_margin_openOrders | 查询杠杆账户挂单记录 | /sapi/v1/margin/openOrders |
get_margin_allOrders | 查询杠杆账户的所有订单 | /sapi/v1/margin/allOrders |
set_margin_order_oco | 杠杆账户 OCO 下单 | /sapi/v1/margin/order/oco |
cancel_margin_orderList | 取消杠杆账户 OCO 订单 | /sapi/v1/margin/orderList |
get_margin_orderList | 查询杠杆账户 OCO | /sapi/v1/margin/orderList |
get_margin_allOrderList | 查询特定杠杆账户所有 OCO | /sapi/v1/margin/allOrderList |
get_margin_openOrderList | 查询杠杆账户 OCO 挂单 | /sapi/v1/margin/openOrderList |
get_margin_myTrades | 查询杠杆账户交易历史 | /sapi/v1/margin/myTrades |
get_margin_maxBorrowable | 查询账户最大可借贷额度 | /sapi/v1/margin/maxBorrowable |
get_margin_maxTransferable | 查询最大可转出额 | /sapi/v1/margin/maxTransferable |
get_margin_tradeCoeff | 查询Margin账户信息汇总 | /sapi/v1/margin/tradeCoeff |
set_margin_isolated_transfer | 杠杆逐仓账户划转 (MARGIN) | /sapi/v1/margin/isolated/transfer |
get_margin_isolated_transfer | 获取杠杆逐仓划转历史 | /sapi/v1/margin/isolated/transfer |
get_margin_isolated_account | 查询杠杆逐仓账户信息 | /sapi/v1/margin/isolated/account |
cancel_margin_isolated_account | 杠杆逐仓账户停用 | /sapi/v1/margin/isolated/account |
set_margin_isolated_account | 杠杆逐仓账户启用 | /sapi/v1/margin/isolated/account |
get_margin_isolated_accountLimit | 查询杠杆逐仓账户启用限制 | /sapi/v1/margin/isolated/accountLimit |
get_margin_isolated_pair | 查询逐仓杠杆交易对 | /sapi/v1/margin/isolated/pair |
get_margin_isolated_allPairs | 获取所有逐仓杠杆交易对 | /sapi/v1/margin/isolated/allPairs |
set_bnbBurn | 现货交易和杠杆利息BNB抵扣开关 | /sapi/v1/bnbBurn |
get_bnbBurn | 获取BNB抵扣开关状态 | /sapi/v1/bnbBurn |
get_margin_interestRateHistory | 获取杠杆利率历史 | /sapi/v1/margin/interestRateHistory |
get_margin_crossMarginData | 获取全仓杠杆利率及限额 | /sapi/v1/margin/crossMarginData |
get_margin_isolatedMarginData | 获取逐仓杠杆利率及限额 | /sapi/v1/margin/isolatedMarginData |
get_margin_isolatedMarginTier | 获取逐仓档位信息 | /sapi/v1/margin/isolatedMarginTier |
get_margin_rateLimit_order | 查询目前杠杆账户下单数 | /sapi/v1/margin/rateLimit/order |
get_margin_dribblet | 杠杆小额资产转换BNB历史 | /sapi/v1/margin/dribblet |
get_margin_dust | 获取可以转换成BNB的小额资产 | /sapi/v1/margin/dust |
set_margin_dust | 杠杆小额资产转换 | /sapi/v1/margin/dust |
get_margin_crossMarginCollateralRatio | 全仓币种质押率 (MARKET_DATA) | /sapi/v1/margin/crossMarginCollateralRatio |
get_margin_exchange_small_liability | 查询可小额负债转换的资产 | /sapi/v1/margin/exchange-small-liability |
set_margin_exchange_small_liability | 全仓杠杆小额负债转换 (MARGIN) | /sapi/v1/margin/exchange-small-liability |
get_margin_exchange_small_liability_history | 查询全仓杠杆小额负债转换历史 | /sapi/v1/margin/exchange-small-liability-history |
get_margin_next_hourly_interest_rate | 查询下小时预估利率 | /sapi/v1/margin/next-hourly-interest-rate |
get_margin_capital_flow | 查询全仓/逐仓资金流水 | /sapi/v1/margin/capital-flow |
get_margin_delist_schedule | 查询全仓和逐仓的币种或币对的下架计划 (MARKET_DATA) | /sapi/v1/margin/delist-schedule |
get_margin_available_inventory | 杠杆可用放贷库存查询 | /sapi/v1/margin/available-inventory |
set_margin_manual_liquidation | 杠杆手动强平(MARGIN) | /sapi/v1/margin/manual-liquidation |
get_margin_leverageBracket | 查询全仓杠杆Pro模式下的负债币种杠杆与保证金率(MARKET_DATA) | /sapi/v1/margin/leverageBracket |
5.2 杠杆代币接口 MarginBlvt
python
from binance_interface.api.margin import MarginBlvt
方法 | 解释 | Path |
---|---|---|
get_blvt_tokenInfo | 杠杆代币信息 (MARKET_DATA) | /sapi/v1/blvt/tokenInfo |
set_blvt_subscribe | 申购代币 | /sapi/v1/blvt/subscribe |
get_blvt_subscribe_record | 查询申购记录 | /sapi/v1/blvt/subscribe/record |
set_blvt_redeem | 赎回代币 | /sapi/v1/blvt/redeem |
get_blvt_redeem_record | 查询赎回记录 | /sapi/v1/blvt/redeem/record |
get_blvt_userLimit | 查询用户每日申购赎回限额 (USER_DATA) | /sapi/v1/blvt/userLimit |
6. 其他接口 Other
python
from binance_interface.api.other import Other
6.1 定投接口 AutoInvest
python
from binance_interface.api.other import AutoInvest
方法 | 解释 | Path |
---|---|---|
get_lending_auto_invest_target_asset_list | 查询允许申购币种列表 | /sapi/v1/lending/auto-invest/target-asset/list |
get_lending_auto_invest_target_asset_roi_list | 查询申购币种投资回报率 | /sapi/v1/lending/auto-invest/target-asset/roi/list |
get_lending_auto_invest_all_asset | 查询申购币种和投资币种列表 | /sapi/v1/lending/auto-invest/all/asset |
get_lending_auto_invest_source_asset_list | 查询投资币种列表 | /sapi/v1/lending/auto-invest/source-asset/list |
set_lending_auto_invest_plan_add | 创建定投计划 | /sapi/v1/lending/auto-invest/plan/add |
set_lending_auto_invest_plan_edit | 编辑定投计划 | /sapi/v1/lending/auto-invest/plan/edit |
set_lending_auto_invest_plan_edit_status | 定投计划状态管理 | /sapi/v1/lending/auto-invest/plan/edit-status |
get_lending_auto_invest_plan_list | 查询定投计划列表 | /sapi/v1/lending/auto-invest/plan/list |
get_lending_auto_invest_plan_id | 查询定投计划详情 | /sapi/v1/lending/auto-invest/plan/id |
get_lending_auto_invest_history_list | 查询申购历史 | /sapi/v1/lending/auto-invest/history/list |
get_lending_auto_invest_index_info | 查询指数信息 | /sapi/v1/lending/auto-invest/index/info |
get_lending_auto_invest_index_user_summary | 查询指数关连计划详情(USER_DATA) | /sapi/v1/lending/auto-invest/index/user-summary |
set_lending_auto_invest_one_off | 单次申购 | /sapi/v1/lending/auto-invest/one-off |
get_lending_auto_invest_one_off_status | 单次申购交易结果查询 | /sapi/v1/lending/auto-invest/one-off/status |
set_lending_auto_invest_redeem | 指数关连计划赎回交易 | /sapi/v1/lending/auto-invest/redeem |
get_lending_auto_invest_redeem_history | 指数关连计划赎回交易历史查询 | /sapi/v1/lending/auto-invest/redeem/history |
get_lending_auto_invest_rebalance_history | 指数关连计划调仓历史记录(USER_DATA) | /sapi/v1/lending/auto-invest/rebalance/history |
6.2 币安挖矿接口 BsWap
python
from binance_interface.api.other import BsWap
方法 | 解释 | Path |
---|---|---|
get_bswap_pools | 获取所有流动资金池 (MARKET_DATA) | /sapi/v1/bswap/pools |
get_bswap_liquidity | 获取流动资金池具体信息 | /sapi/v1/bswap/liquidity |
set_bswap_liquidityAdd | 添加流动性 | /sapi/v1/bswap/liquidityAdd |
set_bswap_liquidityRemove | 移除流动性 | /sapi/v1/bswap/liquidityRemove |
get_bswap_liquidityOps | 获取流动性操作记录 | /sapi/v1/bswap/liquidityOps |
get_bswap_quote | 获取报价 | /sapi/v1/bswap/quote |
set_bswap_swap | 交易 | /sapi/v1/bswap/swap |
get_bswap_swap | 获取交易记录 | /sapi/v1/bswap/swap |
get_bswap_poolConfigure | 获取币对池的配置信息 | /sapi/v1/bswap/poolConfigure |
get_bswap_addLiquidityPreview | 添加流动性的试算 | /sapi/v1/bswap/addLiquidityPreview |
get_bswap_removeLiquidityPreview | 移除流动性的试算 | /sapi/v1/bswap/removeLiquidityPreview |
get_bswap_unclaimedRewards | 查询未领取的奖励数量 | /sapi/v1/bswap/unclaimedRewards |
set_bswap_claimRewards | 领取奖励 | /sapi/v1/bswap/claimRewards |
get_bswap_claimedHistory | 获取已领取奖励记录 (USER_DATA) | /sapi/v1/bswap/claimedHistory |
6.3 C2C接口 C2C
python
from binance_interface.api.other import C2C
方法 | 解释 | Path |
---|---|---|
get_c2c_orderMatch_listUserOrderHistory | 获取 C2C 交易历史记录 (USER_DATA) | /sapi/v1/c2c/orderMatch/listUserOrderHistory |
6.4 闪兑接口 Convert
python
from binance_interface.api.other import Convert
方法 | 解释 | Path |
---|---|---|
get_convert_exchangeInfo | 查询可交易币对信息 | /sapi/v1/convert/exchangeInfo |
get_convert_assetInfo | 查询可交易币种精度 | /sapi/v1/convert/assetInfo |
set_convert_getQuote | 发送获取报价请求 | /sapi/v1/convert/getQuote |
set_convert_acceptQuote | 接受报价 | /sapi/v1/convert/acceptQuote |
get_convert_orderStatus | 查询订单状态 | /sapi/v1/convert/orderStatus |
get_convert_tradeFlow | 获取闪兑交易记录 (USER_DATA) | /sapi/v1/convert/tradeFlow |
6.5 质押借币接口 CryptoLoans
python
from binance_interface.api.other import CryptoLoans
方法 | 解释 | Path |
---|---|---|
get_loan_income | 获取质押借币资金流水 | /sapi/v1/loan/income |
set_loan_borrow | 借币 - 质押借币借贷 | /sapi/v1/loan/borrow |
get_loan_borrow_history | 借币 - 查询质押借币历史记录 | /sapi/v1/loan/borrow/history |
get_loan_ongoing_orders | 借币 - 查询借款中订单列表 | /sapi/v1/loan/ongoing/orders |
set_loan_repay | 还款 - 质押借币还款 | /sapi/v1/loan/repay |
get_loan_repay_history | 还款 - 查询还款记录历史 | /sapi/v1/loan/repay/history |
set_loan_adjust_ltv | 调整质押率 - 质押借币调整质押率 | /sapi/v1/loan/adjust/ltv |
get_loan_ltv_adjustment_history | 调整质押率 - 查询质押率调整历史 | /sapi/v1/loan/ltv/adjustment/history |
get_loan_loanable_data | 查询可借币种数据 | /sapi/v1/loan/loanable/data |
get_loan_collateral_data | 查询抵押币种数据 | /sapi/v1/loan/collateral/data |
get_loan_repay_collateral_rate | 查询抵押币种还款汇率 | /sapi/v1/loan/repay/collateral/rate |
set_loan_customize_margin_call | 质押借币自定义补仓质押率 | /sapi/v1/loan/customize/margin_call |
set_loan_flexible_borrow | 借币 - 活期借币借贷 | /sapi/v1/loan/flexible/borrow |
get_loan_flexible_ongoing_orders | 借币 - 查询活期借款中订单列表 | /sapi/v1/loan/flexible/ongoing/orders |
get_loan_flexible_borrow_history | 借币 - 查询活期借币历史记录 | /sapi/v1/loan/flexible/borrow/history |
set_loan_flexible_repay | 还款 - 活期借币还款 | /sapi/v1/loan/flexible/repay |
get_loan_flexible_repay_history | 还款 - 查询活期借币还款记录历史 | /sapi/v1/loan/flexible/repay/history |
set_loan_flexible_adjust_ltv | 调整质押率 - 活期借币调整质押率 | /sapi/v1/loan/flexible/adjust/ltv |
get_loan_flexible_ltv_adjustment_history | 调整质押率 - 查询活期借币质押率调整历史 TODO | /sapi/v1/loan/flexible/ltv/adjustment/history |
get_loan_flexible_loanable_data | 查询活期借币可借币种数据 | /sapi/v1/loan/flexible/loanable/data |
get_loan_flexible_collateral_data | 查询活期借币抵押币种数据 (USER_DATA) | /sapi/v1/loan/flexible/collateral/data |
6.6 法币接口 Fiat
python
from binance_interface.api.other import Fiat
方法 | 解释 | Path |
---|---|---|
get_fiat_orders | 获取法币充值/提现历史记录 | /sapi/v1/fiat/orders |
get_fiat_payments | 获取法币支付历史记录 (USER_DATA) | /sapi/v1/fiat/payments |
6.7 合约接口 Futures
python
from binance_interface.api.other import Futures
方法 | 解释 | Path |
---|---|---|
set_futures_transfer | 合约资金划转 | /sapi/v1/futures/transfer |
get_futures_transfer | 获取合约资金划转历史 | /sapi/v1/futures/transfer |
get_futures_histDataLink | 获取合约订单薄历史数据下载地址(USER_DATA) | /sapi/v1/futures/histDataLink |
6.8 合约策略交易接口 FuturesAlgo
python
from binance_interface.api.other import FuturesAlgo
方法 | 解释 | Path |
---|---|---|
set_algo_futures_newOrderVp | 成交量份额参与算法(VP)下单 | /sapi/v1/algo/futures/newOrderVp |
set_algo_futures_newOrderTwap | 时间加权平均价格策略(Twap)下单 | /sapi/v1/algo/futures/newOrderTwap |
cancel_algo_futures_order | 取消策略订单 | /sapi/v1/algo/futures/order |
get_algo_futures_openOrders | 查询当前策略订单挂单 | /sapi/v1/algo/futures/openOrders |
get_algo_futures_historicalOrders | 查询历史策略订单 | /sapi/v1/algo/futures/historicalOrders |
get_algo_futures_subOrders | 查询执行子订单 (USER_DATA) | /sapi/v1/algo/futures/subOrders |
6.9 币安礼品卡接口 GiftCard
python
from binance_interface.api.other import GiftCard
方法 | 解释 | Path |
---|---|---|
set_giftcard_createCode | 创建单币种礼品卡 | /sapi/v1/giftcard/createCode |
set_giftcard_buyCode | 创建双币种礼品卡(固定价值,设置折扣) | /sapi/v1/giftcard/buyCode |
set_giftcard_redeemCode | 兑现币安礼品卡 | /sapi/v1/giftcard/redeemCode |
get_giftcard_verify | 通过礼品卡卡号验证币安礼品卡 | /sapi/v1/giftcard/verify |
get_giftcard_cryptography_rsa_public_key | 获取RSA Public Key | /sapi/v1/giftcard/cryptography/rsa-public-key |
get_giftcard_buyCode_token_limit | 获取货币使用限制 (USER_DATA) | /sapi/v1/giftcard/buyCode/token-limit |
6.10 矿池接口 Mining
python
from binance_interface.api.other import Mining
方法 | 解释 | Path |
---|---|---|
get_mining_pub_algoList | 获取算法(MARKET_DATA) | /sapi/v1/mining/pub/algoList |
get_mining_pub_coinList | 获取币种(MARKET_DATA) | /sapi/v1/mining/pub/coinList |
get_mining_worker_detail | 请求矿工列表明细 | /sapi/v1/mining/worker/detail |
get_mining_worker_list | 请求矿工列表 | /sapi/v1/mining/worker/list |
get_mining_payment_list | 收益列表 | /sapi/v1/mining/payment/list |
get_mining_payment_other | 其他收益列表 | /sapi/v1/mining/payment/other |
get_mining_hash_transfer_config_details | 算力转让详情列表 | /sapi/v1/mining/hash-transfer/config/details |
get_mining_hash_transfer_config_details_list | 算力转让列表 | /sapi/v1/mining/hash-transfer/config/details/list |
get_mining_hash_transfer_profit_details | 算力转让详情 | /sapi/v1/mining/hash-transfer/profit/details |
set_mining_hash_transfer_config | 算力转让请求 | /sapi/v1/mining/hash-transfer/config |
set_mining_hash_transfer_config_cancel | 取消算力转让设置 | /sapi/v1/mining/hash-transfer/config/cancel |
get_mining_statistics_user_status | 统计列表 | /sapi/v1/mining/statistics/user/status |
get_mining_statistics_user_list | 账号列表 | /sapi/v1/mining/statistics/user/list |
get_mining_payment_uid | 矿池账户收益列表 (USER_DATA) | /sapi/v1/mining/payment/uid |
6.11 NFT接口 Nft
python
from binance_interface.api.other import Nft
方法 | 解释 | Path |
---|---|---|
get_nft_history_transactions | 获取 NFT 资金流水记录 | /sapi/v1/nft/history/transactions |
get_nft_history_deposit | 获取 NFT 充值记录 | /sapi/v1/nft/history/deposit |
get_nft_history_withdraw | 获取 NFT 提现记录 | /sapi/v1/nft/history/withdraw |
get_nft_user_getAsset | 获取 NFT 资产 (USER_DATA) | /sapi/v1/nft/user/getAsset |
6.12 Pay接口 Pay
python
from binance_interface.api.other import Pay
方法 | 解释 | Path |
---|---|---|
get_pay_transactions | 获取 Pay 交易历史记录 (USER_DATA) | /sapi/v1/pay/transactions |
6.13 经典统一账户接口 Portfolio
python
from binance_interface.api.other import Portfolio
方法 | 解释 | Path |
---|---|---|
get_portfolio_account | 查询经典统一账户信息 | /sapi/v1/portfolio/account |
get_portfolio_collateralRate | 经典统一账户资产质押率 (MARKET_DATA) | /sapi/v1/portfolio/collateralRate |
get_portfolio_pmLoan | 查询经典统一账户穿仓借贷金额 | /sapi/v1/portfolio/pmLoan |
set_portfolio_repay | 偿还经典统一账户穿仓负债 | /sapi/v1/portfolio/repay |
get_portfolio_interest_history | 查询经典统一账户期货负余额收息历史 | /sapi/v1/portfolio/interest-history |
get_portfolio_asset_index_price | 查询统一账户资产价格指数(MARKET_DATA) | /sapi/v1/portfolio/asset-index-price |
set_portfolio_auto_collection | 资金归集 | /sapi/v1/portfolio/auto-collection |
set_portfolio_asset_collection | 特定资产资金归集 | /sapi/v1/portfolio/asset-collection |
set_portfolio_bnb_transfer | BNB划转 | /sapi/v1/portfolio/bnb-transfer |
set_portfolio_repay_futures_switch | 更改自动清还合约负余额模式 | /sapi/v1/portfolio/repay-futures-switch |
get_portfolio_repay_futures_switch | 查询自动清还合约负余额模式 | /sapi/v1/portfolio/repay-futures-switch |
set_portfolio_repay_futures_negative_balance | 清还合约负余额 | /sapi/v1/portfolio/repay-futures-negative-balance |
get_portfolio_margin_asset_leverage | 查询统一账户资产支持杠杆倍数(USER_DATA) | /sapi/v1/portfolio/margin-asset-leverage |
6.14 返佣接口 Rebate
python
from binance_interface.api.other import Rebate
方法 | 解释 | Path |
---|---|---|
get_rebate_taxQuery | 获取现货返佣历史记录 (USER_DATA) | /sapi/v1/rebate/taxQuery |
6.15 赚币接口 SimpleEarn
python
from binance_interface.api.other import SimpleEarn
方法 | 解释 | Path |
---|---|---|
get_simple_earn_flexible_list | 查询赚币活期产品列表 | /sapi/v1/simple-earn/flexible/list |
get_simple_earn_locked_list | 查询赚币定期产品列表 | /sapi/v1/simple-earn/locked/list |
set_simple_earn_flexible_subscribe | 申购活期产品 | /sapi/v1/simple-earn/flexible/subscribe |
set_simple_earn_locked_subscribe | 申购定期产品 | /sapi/v1/simple-earn/locked/subscribe |
set_simple_earn_flexible_redeem | 赎回活期产品 | /sapi/v1/simple-earn/flexible/redeem |
set_simple_earn_locked_redeem | 赎回定期产品 | /sapi/v1/simple-earn/locked/redeem |
get_simple_earn_flexible_position | 获取活期产品持仓 | /sapi/v1/simple-earn/flexible/position |
get_simple_earn_locked_position | 获取定期产品持仓 | /sapi/v1/simple-earn/locked/position |
get_simple_earn_account | 赚币账户 | /sapi/v1/simple-earn/account |
get_simple_earn_flexible_history_subscriptionRecord | 查询活期申购记录 | /sapi/v1/simple-earn/flexible/history/subscriptionRecord |
get_simple_earn_locked_history_subscriptionRecord | 查询定期申购记录 | /sapi/v1/simple-earn/locked/history/subscriptionRecord |
get_simple_earn_flexible_history_redemptionRecord | 查询活期赎回记录 | /sapi/v1/simple-earn/flexible/history/redemptionRecord |
get_simple_earn_locked_history_redemptionRecord | 查询定期赎回记录 | /sapi/v1/simple-earn/locked/history/redemptionRecord |
get_simple_earn_flexible_history_rewardsRecord | 查询活期收益记录 | /sapi/v1/simple-earn/flexible/history/rewardsRecord |
get_simple_earn_locked_history_rewardsRecord | 查询定期收益记录 | /sapi/v1/simple-earn/locked/history/rewardsRecord |
set_simple_earn_flexible_setAutoSubscribe | 设置活期自动申购 | /sapi/v1/simple-earn/flexible/setAutoSubscribe |
set_simple_earn_locked_setAutoSubscribe | 设置定期自动申购 | /sapi/v1/simple-earn/locked/setAutoSubscribe |
get_simple_earn_flexible_personalLeftQuota | 查询活期个人剩余额度 | /sapi/v1/simple-earn/flexible/personalLeftQuota |
get_simple_earn_locked_personalLeftQuota | 查询定期个人剩余额度 | /sapi/v1/simple-earn/locked/personalLeftQuota |
get_simple_earn_flexible_subscriptionPreview | 活期申购预览 | /sapi/v1/simple-earn/flexible/subscriptionPreview |
get_simple_earn_locked_subscriptionPreview | 定期申购预览 | /sapi/v1/simple-earn/locked/subscriptionPreview |
get_simple_earn_flexible_history_rateHistory | 获取利率历史 | /sapi/v1/simple-earn/flexible/history/rateHistory |
get_simple_earn_flexible_history_collateralRecord | 获取抵押物记录(USER_DATA) | /sapi/v1/simple-earn/flexible/history/collateralRecord |
6.16 子母账户接口 SubAccount
python
from binance_interface.api.other import SubAccount
方法 | 解释 | Path |
---|---|---|
set_sub_account_virtualSubAccount | 创建虚拟子账户(适用主账户) | /sapi/v1/sub-account/virtualSubAccount |
get_sub_account_list | 查询子账户列表(适用主账户) | /sapi/v1/sub-account/list |
get_sub_account_sub_transfer_history | 查询子账户现货资金划转历史 (适用主账户) | /sapi/v1/sub-account/sub/transfer/history |
get_sub_account_futures_internalTransfer | 查询子账户合约资金划转历史 (适用主账户) | /sapi/v1/sub-account/futures/internalTransfer |
set_sub_account_futures_internalTransfer | 执行子账户合约资金划转 (适用主账户) | /sapi/v1/sub-account/futures/internalTransfer |
get_sub_account_assets_v3 | 查询子账户资产 (适用主账户) | /sapi/v3/sub-account/assets |
get_sub_account_spotSummary | 查询子账户现货资产汇总 (适用主账户) | /sapi/v1/sub-account/spotSummary |
get_capital_deposit_subAddress | 获取子账户充值地址 (适用主账户) | /sapi/v1/capital/deposit/subAddress |
get_capital_deposit_subHisrec | 获取子账户充值记录 (适用主账户) | /sapi/v1/capital/deposit/subHisrec |
get_sub_account_status | 查询子账户Margin/Futures状态 (适用主账户) | /sapi/v1/sub-account/status |
set_sub_account_margin_enable | 为子账户开通Margin (适用主账户) | /sapi/v1/sub-account/margin/enable |
get_sub_account_margin_account | 查询子账户Margin账户详情 (适用主账户) | /sapi/v1/sub-account/margin/account |
get_sub_account_margin_accountSummary | 查询子账户Margin账户汇总 (适用主账户) | /sapi/v1/sub-account/margin/accountSummary |
set_sub_account_futures_enable | 为子账户开通Futures (适用主账户) | /sapi/v1/sub-account/futures/enable |
get_sub_account_futures_account_v1 | 查询子账户Futures账户详情 (适用主账户) | /sapi/v1/sub-account/futures/account |
get_sub_account_futures_accountSummary_v1 | 查询子账户Futures账户汇总 (适用主账户) | /sapi/v1/sub-account/futures/accountSummary |
get_sub_account_futures_positionRisk_v1 | 查询子账户合约持仓信息 (仅适用主账户) | /sapi/v1/sub-account/futures/positionRisk |
set_sub_account_futures_transfer | 子账户Futures划转 (仅适用主账户) | /sapi/v1/sub-account/futures/transfer |
set_sub_account_margin_transfer | 子账户Margin划转 (仅适用主账户) | /sapi/v1/sub-account/margin/transfer |
set_sub_account_transfer_subToSub | 向共同主账户下的子账户主动划转 (仅适用子账户) | /sapi/v1/sub-account/transfer/subToSub |
set_sub_account_transfer_subToMaster | 向主账户主动划转 (仅适用子账户) | /sapi/v1/sub-account/transfer/subToMaster |
get_sub_account_transfer_subUserHistory | 查询子账户划转历史 (仅适用子账户) | /sapi/v1/sub-account/transfer/subUserHistory |
set_sub_account_universalTransfer | 子母账户万能划转 (适用主账户) | /sapi/v1/sub-account/universalTransfer |
get_sub_account_universalTransfer | 查询子母账户万能划转历史 (适用主账户) | /sapi/v1/sub-account/universalTransfer |
get_sub_account_futures_account | 查询子账户Futures账户详情V2 (适用主账户) | /sapi/v2/sub-account/futures/account |
get_sub_account_futures_accountSummary | 查询子账户Futures账户汇总V2 (适用主账户) | /sapi/v2/sub-account/futures/accountSummary |
get_sub_account_futures_positionRisk | 查询子账户合约持仓信息V2 (仅适用主账户) | /sapi/v2/sub-account/futures/positionRisk |
set_sub_account_blvt_enable | 为子账户开通杠杆代币 (适用母账户) | /sapi/v1/sub-account/blvt/enable |
get_sub_account_subAccountApi_ipRestriction | 查询子账户API Key IP白名单 (适用母账户) | /sapi/v1/sub-account/subAccountApi/ipRestriction |
cancel_sub_account_subAccountApi_ipRestriction_ipList | 删除子账户API Key IP白名单 (适用母账户) | /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList |
set_sub_account_subAccountApi_ipRestriction | 为子账户API Key增加IP白名单 (适用母账户) | /sapi/v2/sub-account/subAccountApi/ipRestriction |
set_managed_subaccount_deposit | 投资人账户为托管子账户充值资产 (适用投资人母账户) | /sapi/v1/managed-subaccount/deposit |
get_managed_subaccount_asset | 投资人账户查询托管子账户资产 (适用投资人母账户) | /sapi/v1/managed-subaccount/asset |
set_managed_subaccount_withdraw | 投资人账户为托管子账户提币资产 (适用投资人母账户) | /sapi/v1/managed-subaccount/withdraw |
get_managed_subaccount_accountSnapshot | 查询托管子账户资产快照 (适用投资人母账户) | /sapi/v1/managed-subaccount/accountSnapshot |
get_managed_subaccount_queryTransLogForInvestor | 查询托管子账户的划转记录(适用投资人母账户) | /sapi/v1/managed-subaccount/queryTransLogForInvestor |
get_managed_subaccount_queryTransLogForTradeParent | 查询托管子账户的划转记录(适用交易团队母账户) | /sapi/v1/managed-subaccount/queryTransLogForTradeParent |
get_managed_subaccount_fetch_future_asset | 投资人账户查询托管子账户期货资产 (适用投资人母账户) | /sapi/v1/managed-subaccount/fetch-future-asset |
get_managed_subaccount_marginAsset | 投资人账户查询托管子账户杠杆资产 (适用投资人母账户) | /sapi/v1/managed-subaccount/marginAsset |
get_sub_account_assets | 查询子账户资产(适用主账户) | /sapi/v4/sub-account/assets |
get_managed_subaccount_info | 查询托管子账户列表 (适用投资人母账户) | /sapi/v1/managed-subaccount/info |
get_sub_account_transaction_statistics | 查询子账户交易量统计列表 (适用母账户) | /sapi/v1/sub-account/transaction-statistics |
get_managed_subaccount_deposit_address | 获取托管子账户充值地址 (适用投资人母账户) | /sapi/v1/managed-subaccount/deposit/address |
set_sub_account_eoptions_enable | 为子账户开通期权(适用主账户) | /sapi/v1/sub-account/eoptions/enable |
get_managed_subaccount_query_trans_log | 查询托管子账户的划转记录(适用交易团队子账户)(USER_DATA) | /sapi/v1/managed-subaccount/query-trans-log |
6.17 VIP借币接口 VipLoans
python
from binance_interface.api.other import VipLoans
方法 | 解释 | Path |
---|---|---|
get_loan_vip_ongoing_orders | 查询VIP借币借款中订单 | /sapi/v1/loan/vip/ongoing/orders |
set_loan_vip_repay | VIP借币还款 | /sapi/v1/loan/vip/repay |
get_loan_vip_repay_history | 查询VIP借币还款记录历史 | /sapi/v1/loan/vip/repay/history |
set_loan_vip_renew | VIP 借币续期 | /sapi/v1/loan/vip/renew |
get_loan_vip_collateral_account | 查询VIP子账户冻结抵押物金额 | /sapi/v1/loan/vip/collateral/account |
set_loan_vip_borrow | VIP 借币借款 | /sapi/v1/loan/vip/borrow |
get_loan_vip_loanable_data | 查询VIP借币可借币种数据 | /sapi/v1/loan/vip/loanable/data |
get_loan_vip_collateral_data | 查询VIP借币抵押币种数据(USER_DATA) | /sapi/v1/loan/vip/collateral/data |
get_loan_vip_request_data | 查询申请状态(USER_DATA) | /sapi/v1/loan/vip/request/data |
get_loan_vip_request_interestRate | 查询借款利率(USER_DATA) | /sapi/v1/loan/vip/request/interestRate |
6.18 钱包接口 Wallet
python
from binance_interface.api.other import Wallet
方法 | 解释 | Path |
---|---|---|
get_system_status | 系统状态(System) | /sapi/v1/system/status |
get_capital_config_getall | 获取所有币信息 | /sapi/v1/capital/config/getall |
get_accountSnapshot | 查询每日资产快照 | /sapi/v1/accountSnapshot |
set_account_disableFastWithdrawSwitch | 关闭站内划转 | /sapi/v1/account/disableFastWithdrawSwitch |
set_account_enableFastWithdrawSwitch | 开启站内划转 | /sapi/v1/account/enableFastWithdrawSwitch |
set_capital_withdraw_apply | 提币 | /sapi/v1/capital/withdraw/apply |
get_capital_deposit_hisrec | 获取充值历史(支持多网络) | /sapi/v1/capital/deposit/hisrec |
get_capital_withdraw_history | 获取提币历史 (支持多网络) | /sapi/v1/capital/withdraw/history |
get_capital_deposit_address | 获取充值地址 (支持多网络) | /sapi/v1/capital/deposit/address |
get_account_status | 账户状态 | /sapi/v1/account/status |
get_account_apiTradingStatus | 账户API交易状态 | /sapi/v1/account/apiTradingStatus |
get_asset_dribblet | 小额资产转换BNB历史 | /sapi/v1/asset/dribblet |
set_asset_dust_btc | 获取可以转换成BNB的小额资产 | /sapi/v1/asset/dust-btc |
set_asset_dust | 小额资产转换 | /sapi/v1/asset/dust |
get_asset_assetDividend | 资产利息记录 | /sapi/v1/asset/assetDividend |
get_asset_assetDetail | 上架资产详情 | /sapi/v1/asset/assetDetail |
get_asset_tradeFee | 交易手续费率查询 | /sapi/v1/asset/tradeFee |
set_asset_transfer | 用户万向划转 | /sapi/v1/asset/transfer |
get_asset_transfer | 查询用户万向划转历史 | /sapi/v1/asset/transfer |
set_asset_get_funding_asset | 资金账户 | /sapi/v1/asset/get-funding-asset |
set_asset_getUserAsset | 用户持仓 | /sapi/v3/asset/getUserAsset |
set_asset_convert_transfer | 稳定币自动兑换划转 | /sapi/v1/asset/convert-transfer |
get_asset_convert_transfer_queryByPage | 稳定币自动兑换划转查询 | /sapi/v1/asset/convert-transfer/queryByPage |
get_asset_ledger_transfer_cloud_mining_queryByPage | 云算力历史记录分页查询 | /sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage |
get_account_apiRestrictions | 查询用户API Key权限 | /sapi/v1/account/apiRestrictions |
get_capital_contract_convertible_coins | 查询用户稳定币与 BUSD 互相转换的设置 (USER_DATA)【TODO 没有找到Table】 | /sapi/v1/capital/contract/convertible-coins |
set_capital_contract_convertible_coins | 修改哪些稳定币可与 BUSD 互相转换 | /sapi/v1/capital/contract/convertible-coins |
set_capital_deposit_credit_apply | 一键上账 (充值到过期地址) | /sapi/v1/capital/deposit/credit-apply |
get_capital_deposit_address_list | 查询充值地址列表 | /sapi/v1/capital/deposit/address/list |
get_asset_wallet_balance | 查询用户钱包余额 | /sapi/v1/asset/wallet/balance |
get_asset_custody_transfer_history | 查询用户委托资金历史(适用主账户)(USER_DATA) | /sapi/v1/asset/custody/transfer-history |