avatar of richardweiming richardweiming
focar em Mensagem privada
0
focar em
0
Seguidores

Ajuda, usando modelos de negociação de margem exchange.IO e Bitfinex para colocar ordens de margem, ambos geram erros)

Criado em: 2018-05-06 00:07:05, atualizado em: 2018-05-06 00:07:27
comments   1
hits   1882

2018-05-05 23:52:23 Bitfinex Erro Futures_OP 4: 400: {“message”:“Key amount should be a decimal string”.}

$.bitfinexBuy = function(price, amount){ var message = “symbol=” + basecurrency + quotecurrency + “&amount=” + amount.toString() + “&price=” + price.toString() + “&side=buy” + “&type=limit” var id = exchanges[bitfinexIndex].IO(“api”, “POST”, “/v1/order/new”, message) return id.order_id

似乎是你们IO封装参数的时候强制设置为字符型,但是场子只接受整字,所以报错。
这个问题已经很长时间了,还是没有更改啊,
求助处理