Type/to search

okex订单薄校验checksum算法函数

Tool
0
Follow
0
Followers

模板说明:用于Okex对于自维护订单薄的合法完整性校验checksum算法实现

调用方法:$.okex_checksum(bids, asks)

传入参数:

  • bids 数组,例如:[["49194", "5", "0", "1"], ["49190.4", "1", "0", "1"]]
  • asks 数组,例如:[["49194.1", "447", "0", "5"], ["49197.1", "132", "0", "1"]]

返回结果:

  • 返回计算结果,number, 例如:-1089185544
Source
JavaScript


/*
模板说明:用于Okex对于自维护订单薄的合法完整性校验checksum算法实现

调用方法:$.okex_checksum(bids, asks)

传入参数:
- bids 数组,例如:[["49194", "5", "0", "1"], ["49190.4", "1", "0", "1"]]
- asks 数组,例如:[["49194.1", "447", "0", "5"], ["49197.1", "132", "0", "1"]]

返回结果:
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)