avatar of richardweiming richardweiming
Seguir Mensajes Privados
0
Seguir
0
Seguidores

Ayuda, uso de las plantillas de trading con margen de Exchange.IO y Bitfinex para colocar órdenes con margen (ambos errores aparecen)

Creado el: 2018-05-06 00:07:05, Actualizado el: 2018-05-06 00:07:27
comments   1
hits   1882

2018-05-05 23:52:23 Bitfinex Error Futures_OP 4: 400: {“message”:“Key amount should be a decimal string. “} La cantidad clave debe ser una cadena decimal.

$.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封装参数的时候强制设置为字符型,但是场子只接受整字,所以报错。
这个问题已经很长时间了,还是没有更改啊,
求助处理