ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++

Home Page:https://127.0.0.1:3000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitfinex ETH/BTC Price Precision Incorrect

MiningInMySleep opened this issue · comments

Their API is also incorrect:
{
"expiration" : "NA",
"initial_margin" : "20.0",
"margin" : true,
"maximum_order_size" : "5000.0",
"minimum_margin" : "10.0",
"minimum_order_size" : "0.0008",
"pair" : "ethbtc",
"price_precision" : 5
},

This leads to obvious issues placing orders as seen in the first screenshot.
If their API is lying to us, maybe we can do some magic on startup to determine real precision based on order book prices instead?
ethbtc
ethbtc2

Same issue when testing with XMR/BTC, TRX/USD, XRP/USD pairs.