Type/to search

Binance buy and sell statistics

Binance
3
Follow
1503
Followers

记录主动成交数据,反映了买卖盘的活跃程度

Source
JavaScript
var tradeHistory = {buyData:{amount:0, money:0}, sellData:{amount:0, money:0}}
if(_G('tradeHistory')){
    tradeHistory = _G('tradeHistory')
}
function onexit(){
    Log('exit,saving data...')
    _G('tradeHistory', tradeHistory)
}
function main(){
    var client = Dial("wss://stream.binance.com:9443/ws/" + Pair.toLowerCase() + "@trade", 60)
    var updateTime = new Date().getTime()
    while(true){
Strategy parameters
Strategy parameters
Log interval(second)
trading pair
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)