Get aggregated trades

=LF.binance.getAggTrades
Get aggregated Trades for a symbol

Parameter

symbol: The symbol.
startTime: The start time.
endTime: The end time.
limit: The maximum number of items to return.

Result

symbol: Symbol
a: Aggregate Trade ID
p: Price
q: Quantity
f: First Trade ID
l: Last Trade ID
T: Timestamp
m: Is Buyer Maker
M: Is Best Match

Get average price

=LF.binance.getAvgPrice
Get current average price for a symbol

Parameter

symbol: The symbol.

Result

symbol: Symbol
mins: Minutes
price: Price
closeTime: Close Time

Get bid/ask

=LF.binance.getDepth
Get bids & asks for a symbol

Parameter

symbol: The symbol.
limit: The maximum number of items to return.

Result

symbol: Symbol
price: Price
qty: Quantity
type: Type

Get rate limit

=LF.binance.getExchangeInfoRateLimits
Get max calls you can do

Result

rateLimitType: Rate Limit Type
interval: Interval
intervalNum: Interval Number
limit: Limit

Get exchange information symbols

=LF.binance.getExchangeInfoSymbols
Get information about trading pairs

Result

symbol: Symbol
status: Status
baseAsset: Base Asset
baseAssetPrecision: Base Asset Precision
quoteAsset: Quote Asset
quotePrecision: Quote Precision
orderTypes: Order Types
icebergAllowed: Iceberg Allowed
ocoAllowed: OCO Allowed
quoteOrderQtyMarketAllowed: Quote Order Quantity Market Allowed
allowTrailingStop: Allow Trailing Stop
cancelReplaceAllowed: Cancel Replace Allowed
isSpotTradingAllowed: Spot Trading Allowed
isMarginTradingAllowed: Margin Trading Allowed
filters: Filters
permissions: Permissions
defaultSelfTradePreventionMode: Default Self Trade Prevention Mode
allowedSelfTradePreventionModes: Allowed Self Trade Prevention Modes

Get Klines

=LF.binance.getKlines
Get klines/candlestick data for a symbol

Parameter

symbol: The symbol.
interval: Interval description
startTime: The start time.
endTime: The end time.
timeZone: The time zone to use for the query.
limit: The maximum number of items to return.

Result

symbol: Symbol
openTime: Open Time
open: Opening price
high: Highest price
low: Lowest price
close: Closing price
volume: Volume
closeTime: Close Time
quoteAssetVolume: Volume of the quote asset
numberOfTrades: Number of trades
takerBuyBaseAssetVolume: Total volume of the taker buyer for the base asset
takerBuyQuoteAssetVolume: Total volume of the taker buyer for the quote asset

Get Uiklines

=LF.binance.getUiklines
Get uiklines/candlestick data for a symbol

Parameter

symbol: The symbol.
interval: Interval description
startTime: The start time.
endTime: The end time.
timeZone: The time zone to use for the query.
limit: The maximum number of items to return.

Result

symbol: Symbol
openTime: Open Time
open: Opening price
high: Highest price
low: Lowest price
close: Closing price
volume: Volume
closeTime: Close Time
quoteAssetVolume: Volume of the quote asset
numberOfTrades: Number of trades
takerBuyBaseAssetVolume: Total volume of the taker buyer for the base asset
takerBuyQuoteAssetVolume: Total volume of the taker buyer for the quote asset

Get ticker

=LF.binance.getTicker
Get ticker prices for a symbol

Parameter

symbols: The symbols to include in the query.

Result

symbol: Symbol
priceChange: Price Change
priceChangePercent: Price Change Percent
weightedAvgPrice: Weighted Average Price
prevClosePrice: Previous Close Price
lastPrice: Last Price
lastQty: Last Quantity
bidPrice: Bid Price
bidQty: Bid Quantity
askPrice: Ask Price
askQty: Ask Quantity
openPrice: Open Price
highPrice: High Price
lowPrice: Low Price
volume: Volume
quoteVolume: Quote Volume
openTime: Open Time
closeTime: Close Time
firstId: First ID
lastId: Last ID
count: Count

Get 24-hour ticker

=LF.binance.getTicker24h
Get 24-hour ticker prices for a symbol

Parameter

symbols: The symbols to include in the query.

Result

symbol: Symbol
priceChange: Price Change
priceChangePercent: Price Change Percent
weightedAvgPrice: Weighted Average Price
prevClosePrice: Previous Close Price
lastPrice: Last Price
lastQty: Last Quantity
bidPrice: Bid Price
bidQty: Bid Quantity
askPrice: Ask Price
askQty: Ask Quantity
openPrice: Open Price
highPrice: High Price
lowPrice: Low Price
volume: Volume
quoteVolume: Quote Volume
openTime: Open Time
closeTime: Close Time
firstId: First ID
lastId: Last ID
count: Count

Get ticker book

=LF.binance.getTickerBook
Get ticker book prices for a symbol

Parameter

symbols: The symbols to include in the query.

Result

symbol: Symbol
bidPrice: Bid Price
bidQty: Bid Quantity
askPrice: Ask Price
askQty: Ask Quantity

Get ticker price

=LF.binance.getTickerPrice
Get ticker price for a symbol

Parameter

symbols: The symbols to include in the query.

Result

symbol: Symbol
price: Price

Get trades

=LF.binance.getTrades
Get recent trades for a symbol

Parameter

symbol: The symbol.
limit: The maximum number of items to return.

Result

symbol: Symbol
id: ID
price: Price
qty: Quantity
quoteQty: Quote Quantity
time: Time
isBuyerMaker: Is Buyer Maker
isBestMatch: Is Best Match

Get all cross margin pairs

=LF.binance.getAllCrossMarginPairs
Get information about all cross margin trading pairs

Parameter

Result

id: ID
symbol: Symbol
base: Base asset description
quote: Quote asset description
isMarginTrade: Is Margin Trade
isBuyAllowed: Is Buy Allowed
isSellAllowed: Is Sell Allowed

Get all margin assets

=LF.binance.getAllMarginAssets
Get information about all margin assets

Parameter

Result

assetFullName: Asset Full Name
assetName: Asset Name
isBorrowable: Is Borrowable
isMortgageable: Is Mortgageable
userMinBorrow: User Min Borrow
userMinRepay: User Min Repay

My balances

=LF.binance.myBalances
Get balances for my account

Parameter

onlyPositive: Flag to indicate whether to include only positive values.

Result

coin: Coin
name: Name
depositAllEnable: Deposit All Enable
free: Free
freeInMyCurrency: Free In My Currency
freeze: Freeze
freezeInMyCurrency: Freeze In My Currency
ipoable: IPOable
ipoableInMyCurrency: IPOable In My Currency
isLegalMoney: Is Legal Money
locked: Locked
networkList: Network List
storage: Storage
trading: Trading description
withdrawAllEnable: Withdraw All Enable
withdrawing: Withdrawing

My account snapshot spot

=LF.binance.myAccountSnapshotSpot
Get account snapshot for my spot account

Parameter

onlyLast: Flag to indicate only the last item should be returned.
onlyPositive: Flag to indicate whether to include only positive values.
startTime: The start time.
endTime: The end time.
limit: The maximum number of items to return.

Result

bankSyncId: Bank synchronization ID
asset: Asset description
free: Free
freeInMyCurrency: Free In My Currency
locked: Locked
lockedInMyCurrency: Locked in my currency
updateTime: Update time

My account snapshot margin

=LF.binance.myAccountSnapshotMargin
Get account snapshot for my margin account

Parameter

onlyPositive: Flag to indicate whether to include only positive values.
onlyLast: Flag to indicate only the last item should be returned.
startTime: The start time.
endTime: The end time.
limit: The maximum number of items to return.

Result

bankSyncId: Bank synchronization ID
updateTime: Update time
asset: Asset description
borrowed: Borrowed
borrowedInMyCurrency: Borrowed in my currency
free: Free
freeInMyCurrency: Free In My Currency
interest: Interest
interestInMyCurrency: Interest in my currency
locked: Locked
lockedInMyCurrency: Locked in my currency
netAsset: Net asset
netAssetInMyCurrency: Net asset in my currency

My account snapshot futures

=LF.binance.myAccountSnapshotFutures
Get account snapshot for my futures account

Parameter

startTime: The start time.
endTime: The end time.
limit: The maximum number of items to return.

Result

bankSyncId: Bank synchronization ID
updateTime: Update time
type: Type
asset: Asset description
marginBalance: Margin balance
walletBalance: Wallet balance
entryPrice: Entry price
markPrice: Mark price
positionAmt: Position amount
symbol: Symbol
unRealizedProfit: Unrealized profit

My deposit history

=LF.binance.myDepositHistory
Get deposit history for my account

Parameter

coin: The coin
status: The status.
startTime: The start time.
endTime: The end time.
offset: Offset description
limit: The maximum number of items to return.

Result

amount: Amount
coin: Coin
network: Network
status: Status
address: Address
addressTag: Address tag
txId: Transaction ID
insertTime: Insertion time
transferType: Transfer type
confirmTimes: Confirmation times

My withdraw history

=LF.binance.myWithdrawHistory
Get withdraw history for my account

Parameter

coin: The coin
withdrawOrderId: The withdraw order ID
status: The status.
startTime: The start time.
endTime: The end time.
offset: Offset description
limit: The maximum number of items to return.

Result

address: Address
amount: Amount
applyTime: Application time
coin: Coin
id: ID
withdrawOrderId: Withdraw order ID
network: Network
transferType: Transfer type
status: Status
transactionFee: Transaction fee
txId: Transaction ID

My asset dividend record

=LF.binance.myAssetDividendRecord
Get asset dividend record for my account

Parameter

asset: The asset
startTime: The start time.
endTime: The end time.
limit: The maximum number of items to return.

Result

id: ID
asset: Asset description
amount: Amount
amountInMyCurrency: Amount in my currency
divTime: Dividend time
enInfo: English information
tranId: Transaction ID

My locked positions

=LF.binance.myLockedPositions
Get locked positions for my account

Parameter

Result

positionId: Position ID
productId: Product ID
asset: Asset description
amount: Amount
amountInMyCurrency: Amount in my currency
purchaseTime: Purchase time
duration: Duration
accrualDays: Accrual days
rewardAmt: Reward amount
rewardAmtInMyCurrency: Reward amount in my currency
nextPay: Next payment
nextPayInMyCurrency: Next payment in my currency
nextPayDate: Next payment date
payPeriod: Payment period
redeemAmountEarly: Redeem amount early
redeemAmountEarlyInMyCurrency: Redeem amount early in my currency
rewardsEndDate: Rewards end date
deliverDate: Delivery date
redeemPeriod: Redeem period
canRedeemEarly: Can redeem early
autoSubscribe: Auto subscription renewal
type: Type
status: Status
canReStake: Can restake
apy: APY

My flexible position

=LF.binance.myFlexiblePosition
Get flexible positions for my account

Parameter

Result

asset: Asset description
productId: Product ID
totalAmount: Total amount
totalAmountInMyCurrency: Total amount in my currency
collateralAmount: Collateral amount
collateralAmountInMyCurrency: Collateral amount in my currency
cumulativeBonusRewards: Cumulative bonus rewards
cumulativeBonusRewardsInMyCurrency: Cumulative bonus rewards in my currency
cumulativeRealTimeRewards: Cumulative real-time rewards
cumulativeRealTimeRewardsInMyCurrency: Cumulative real-time rewards in my currency
cumulativeTotalRewards: Cumulative total rewards
cumulativeTotalRewardsInMyCurrency: Cumulative total rewards in my currency
autoSubscribe: Auto subscription renewal

My fiat payments

=LF.binance.myFiatPayments
Get fiat buy/sell for my account

Parameter

transactionType: The transaction type
beginTime: The begin time
endTime: The end time.
page: The page number for pagination.
rows: The number of rows to return.

Result

orderNo: Order number
sourceAmount: Source amount
fiatCurrency: Fiat currency
obtainAmount: Obtain amount
cryptoCurrency: Cryptocurrency
totalFee: Total fees
price: Price
status: Status
paymentMethod: Payment method
createTime: Creation time
updateTime: Update time

My fiat orders

=LF.binance.myFiatOrders
Get fiat deposit/withdraw for my account

Parameter

transactionType: The transaction type
beginTime: The begin time
endTime: The end time.
page: The page number for pagination.
rows: The number of rows to return.

Result

orderNo: Order number
fiatCurrency: Fiat currency
indicatedAmount: Indicated amount
amount: Amount
totalFee: Total fees
method: Method
status: Status
createTime: Creation time
updateTime: Update time

My Open orders

=LF.binance.myOpenOrders
Get open orders and not executed yet

Parameter

symbol: The symbol.

Result

symbol: Symbol
orderId: Order ID
orderListId: Order list ID
clientOrderId: Client order ID
price: Price
origQty: Original quantity
executedQty: Executed quantity
cummulativeQuoteQty: Cummulative quote quantity
status: Status
timeInForce: Time In Force
type: Type
side: Side
stopPrice: Stop Price
icebergQty: Iceberg Quantity
time: Time
updateTime: Update time
isWorking: Is working
workingTime: Working time
origQuoteOrderQty: Original quote order quantity
selfTradePreventionMode: Self-trade prevention mode

My trades

=LF.binance.myTrades
Get trades for my account and given symbol

Parameter

symbol: The symbol.
limit: The maximum number of items to return.

Result

symbol: Symbol
id: ID
orderId: Order ID
orderListId: Order list ID
price: Price
qty: Quantity
quoteQty: Quote Quantity
commission: Commission
commissionAsset: Commission asset
time: Time
isBuyer: Is buyer
isMaker: Is maker
isBestMatch: Is Best Match

My Sub-accounts

=LF.binance.mySubAccounts
Query Sub-account List (For Master Account)

Parameter

email: The email address
isFreeze: Flag to indicate if the data should be frozen.
page: The page number for pagination.
limit: The maximum number of items to return.

Result

email: Email
isFreeze: Is frozen
createTime: Creation time
isManagedSubAccount: Is a managed sub-account
isAssetManagementSubAccount: Is an asset management sub-account

Sub-account Spot Asset Transfer History

=LF.binance.mySubAccountsTransferHistory
Query Sub-account Spot Asset Transfer History (For Master Account)

Parameter

fromEmail: The source email address.
toEmail: The destination email address.
startTime: The start time.
endTime: The end time.
page: The page number for pagination.
limit: The maximum number of items to return.

Result

from: Sender
to: Recipient
asset: Asset description
qty: Quantity
status: Status
tranId: Transaction ID
time: Time