我使用npm安装Binance API节点。我达到以下步骤:
import Binance from 'binance-api-node'
const client = Binance()
// Authenticated client, can make signed calls
const client2 = Binance({
apiKey: 'xxx',
apiSecret: 'xxx',
getTime: xxx, // time generator function, optional, defaults to () => Date.now()
})
client.time().then(time => console.log(time))请你指导我如何操作这个部分。节点模块可以在https://github.com/Ashlar/binance-api-node上找到。
发布于 2020-09-27 06:34:53
apiKey和apiSecret中。3.如果您没有适当的babel配置,则需要使用基本的commonjs要求。const Binance = require('binance-api-node').default而不是ES6 importhttps://stackoverflow.com/questions/64085410
复制相似问题