Skip to main content

Enums

Product Type (category)​

ValueDescription
spotSpot
linearFutures

Order Side (side)​

ValueDescription
BUYbuy
SELLsell

Order Type (orderType)​

ValueDescription
Marketmarket order
Limitlimit order

Time in Force (timeInForce)​

ValueDescription
GTCremains valid until executed or canceled
IOCImmediate execution and remaining cancel
FOKAll executed or cancel
PostOnlyOnly make taker
PO-COFSpot skip order (only valid for spot)

Trigger Price Type (triggerBy)​

ValueDescription
LastPriceLatest trade price
IndexPriceIndex price
MarkPriceMark price

Position Mode (positionIdx)​

ValueDescription
0one-way position
1Long (bidirectional)
2Short position (bidirectional)

Position Mode Switch (mode)​

ValueDescription
0one-way position
3Bidirectional holding

Trigger Direction (triggerDirection)​

ValueDescription
1Triggers when price rises
2Triggers when price falls

Order Filter (orderFilter)​

ValueDescription
Orderregular order
tpslOrderTake-profit and stop-loss orders (spot)
StopOrderConditional order (futures)

Historical Order Status (orderStatus)​

ValueDescription
5rejected
7cancelled
9fully executed
10Disabled/invalid
11partially executed and canceled

Stop Order Type (stopOrderType)​

ValueDescription
1Futures - order plan
2Futures - position take profit
3Futures - position stop loss
6Futures - partial take profit
7Futures - partial stop loss
8Spot - plan order
10Spot-OCO

Business Order Type (businessOrderType)​

ValueDescription
LIMITlimit order
MARKETmarket order
OCOOCO order

Position Direction (action)​

ValueDescription
1Open long
2Open short
3Close long
4Close short

Account Mode (accountMode)​

ValueDescription
CROSSCross margin
ISOLATEDIsolated margin

Transaction Log Type (transType)​

CodeDescription
3Trading
4funding fee
5delivery
6liquidation settlement
103settlement
1053ADL position reduction
101System currency swap sell
102System currency swap buy
1023user buys cryptocurrency
1024user sells cryptocurrency
14Interest settlement
2001On-chain deposit crediting
2002withdrawal freeze
2003withdrawal unfreeze
2004Withdrawal
2005Withdrawal fee freezing
2006Withdrawal fee unfreeze
2007Withdrawal fee deduction
2008Withdrawal failure return
2009In-platform transfer out account freeze
2010Transfer out and freeze release within platform
2011In-platform transfer out
2012In-platform transfer in
2013Futures to spot
2014Spot to futures
2015Dex account to spot
2016Spot to Dex account transfer
2017Asset credit limit
2018Transfer of earned coin interest from trading account to settlement account
2019Settlement account transfer out
2020Transfer to Personal Futures Account
2021Flash swap sell
2022Flash swap buy
2023transfer out
2024transfer in
2025LBK repurchase deduction
2026LBK repurchase fund disbursement
2027Send red packet
2028Claim red envelope
2029Return red packet
2030System transfer out
2031Account transfer deposit
2032Dual-currency investment subscription
2033Dual-currency investment fundraising inflow
2034Dual-currency investment settlement funds outflow
2035Dual-currency investment interest inflow
2036dual-currency investment subsidy outflow
2037Dual-currency investment settlement funds inflow
2038Dual-currency investment interest
2039Dual-currency investment refund
2040Current account interest distribution
2041Fee platform account transfer
2042Transfer from Reinvestment Platform Account
2043Daily settlement funds transferred from futures account
2045Cryptocurrency red packet distribution
2046Activity rewards
2047Spot trading guarantee compensation
2048Registration invitation code red packet
2049Invitation registration red envelope disbursement
2050Bonus credited upon registration invitation redemption
2051Marketing red packet rewards
2052Launchpool deduction disbursement
2053Launchpool distribution
2054LBmeme creation cost disbursement
2055LBmeme creation cost recording
2056LBmeme purchase withdrawal
2057LBmeme purchase deposit
2058LBmeme refund withdrawal
2059LBmeme refund deposit
2060LBmeme distribution crediting
2061LBmeme pool fund withdrawal
2062LBmeme pool fund deposit
2063LBmeme capital lending debiting
2064LBmeme capital lending crediting
2065LBmeme_KOL rush funding withdrawal
2066LBmeme_KOL rush funding deposit
2067LBmeme rush account margin injection withdrawal
2068LBmeme rush account margin injection deposit
2069Project-side risk control
2070Business project side spot K-line anomaly monitoring
2071Withdrawal fee accounting
2072trading fee crediting
2073ETF trading fee crediting
2074Spot platform fee income debited
2075Spot platform fee income credited
2076Withdrawal platform fee income debited
2077Withdrawal platform fee income credited
2078ETF platform fee income disbursement
2079ETF platform fee income recording
2080Spot referral income debited
2081Spot referral income credited
2082Spot Maker reward distribution
2083Spot Maker reward crediting
2084Spot trading fee refund debited from account
2085Spot trading fee refund credited to account
2086Futures referral revenue debited
2087Futures referral revenue credited
2088Futures maker reward distributed
2089Futures maker reward credited
2090Futures trading fee refund debit entry
2091Futures trading fee refund credit entry
2093Omni referral revenue debit
2094Omni referral revenue credit
2095Deduction for Airdrop distribution
2096Airdrop distribution
2097Manual deposit
2098Bypass switch for forced account posting
2101YuBiBao - fixed term
2102YuBiBao - current account
2103special reward
2104Performance bonus
2105monthly settlement
2106Bonus rewards
2107Delisting settlement
2108platform compensation
2109Asset currency swap
2110Asset rename
2111Community sales
2112Contract bonus refund to account
2113Static reward
2114Fiat buy crypto
2115Fiat sell crypto
2116Fiat freeze
2117Fiat unfreeze
2118Fiat consumption
2119Fintech channel settlement
2120Fiat referral commission
2121Fiat refund
2122P2P buy
2123P2P sell
2124Silent transfer
2128Spot to copy trading sub-account transfer
2129copy sub-account to spot
2130Spot to futures grid
2131Fund distribution account to spot trading pair
2132Transfer from derivative position account to spot
2133new trading engine spot fee aggregation
2134new trading engine futures fee aggregation
2135Balance trading
2136Fiat deposit
2137Asset settlement
2138Asset erasure
2139Manual risk control restrictions
2140Dex account to platform account
2141Trading dividend
2142fil release increase
2143fil120 release deduction
2144fil72 release deduction
2145Small-scale exchange purchase
2146Small-scale exchange sale
2147Earn coins in spot trading
2148scheduled investment
2149platform care
2150fee refund
2151Small-scale exchange cancellation
2152Asset elimination rollback
2153Card consumption
2154Card refund
2155U-card referral income crediting
2156chat room referral bonus
2157Spot platform transaction fee income credited
2158Card opening fee
2159Card shipping fee
2160Card activation fee
2161P2P order dispute settlement
2162ETF asset consolidation
2163Pre-IPO subscription
2164Pre-IPO refund
2165Pre-IPO redemption
2166Other special cases
2167Futures gift loss subsidy
2168Consumption deduction voucher subsidy
2169Transfer from unified account mode to spot
2170Switch to spot withdrawal in classic mode
2171Transfer from unified account mode to spot
2172Switch to spot transfer in classic mode
2173Spot trading rollback transfer out
2174Spot trading rollback transfer in
2175Deduct activity rewards
4001Reserve Coin Treasure
4002Locked position expense
4003Locked position refund
4004Locked position refund
4005Wealth management income transfer
4006Current account interest rate increase for regular mining
4007Current account mining experience fund
4008Scheduled investment subscription
4009Scheduled investment return
4010Scheduled investment return rate
4011Periodic wealth management interest rate increase coupon
6999Others
7003Futures bonus credited
7004Futures bonus recovery
7005Fund deposit
7006Fund transfer
7007fee
7008Commission pre-withholding
7009Refund of performance sharing pre-withholding
7010Profit-sharing settlement crediting
7011position token funding acquisition
7012Position margin transfer
7013Position margin recovery
7014position token profit withdrawal
7015position token profit crediting
7016Futures grid transfer
7017guaranteed price fee
7018Follow-up Compensation Voucher Compensation
7019Transfer and recovery of futures gift funds
7020Futures gift fund recovery system
7021Contract bonus settlement recovery
7022Follow-trading funding transfer
7023Follow-trading funding transfer
7024Grid position transfer
7025Grid funding transfer in
7026Transfer of copy-trading profit-sharing funds to platform account
7027carrying position income
7028Copy trading refund
7029VoucherCompensation
7030Grid package compensation voucher compensation
7031Futures main account to copy sub-account
7032Follow-up sub-account to contract main account
7033Pre-withhold of copy-trading profit-sharing funds to platform account
7034Realized profit and loss.
7035Silent transfer
7036Futures copy trading transfer
7037Futures principal erasure
7038Transfer from futures to unified account mode
7039Switch to futures contract transfer in classic mode
9999unknown type