0
집중하다
0
수행원

바이낸스 실시간 디지털 정밀 버그

만든 날짜: 2021-07-15 23:39:47, 업데이트 날짜:
comments   11
hits   1340

아직 배송되지 않은 주문이 반환되는 경우 [{“Info”:{“symbol”:“ALICEUSDT”,“status”:“PARTIALLY_FILLED”,“clientOrderId”:“x-PtW46NoE_20FD0D3794C8F944”,“executedQty”:“1.3”,“cumQuote”:“10.4819”,“type”:“LIMIT”,“reduceOnly”:false,“orderId”:708818902,“price”:“8.063”,“avgPrice”:“8.0630”,“origQty”:“11.6”,“closePosition”:false,“time”:1626332174412,“side”:“SELL”,“workingType”:“CONTRACT_PRICE”,“priceProtect”:false,“updateTime”:1626332174485,“timeInForce”:“GTC”,“positionSide”:“SHORT”,“stopPrice”:“0”,“origType”:“LIMIT”},“Id”:“708818902”,“Price”:8.063,“Amount”:11.6,“DealAmount”:1.3,“AvgPrice”:8.063,“Status”:0,“Type”:1,“Offset”:0,“ContractType”:“swap”}]

위에는 11.6개의 주문이 표시되어 있지만 1.3개의 주문이 이루어졌고, 그 후에 판매되지 않은 숫자가 다시 판매되었습니다. 하지만 두 숫자를 srvOrder.Amount - srvOrder.DealAmount로 빼면 10.3가 아닌 10.29999999999가 나옵니다. 아래의 정확도 누출 오류가 발생했습니다.

Sell(8.054, 10.299999999999): 400: {“code”:-1111,“msg”:“Precision is over the maximum defined for this asset.”}

자바스크립트입니다.