This is not really a bug. It’s an issue with the size of the SOL perpetual contract on OKX. The minimum size that Gainium bot calculates and operates with is 1 sol. However, the contract size is 0.01 SOL, which would allow us to trade with smaller accounts, and to have propper calculating for safety orders sizes that have a non-integer multipliers.
Would it be possible to implement propper contract sizes for SOL on OKX?
Cheers!
Hi there,
We automatically get minimum contract size from the exchange. Can you confirm that you can place a smaller order though the Okx app?
Thank you for the quick response! So, it does appear that the contract size is 1SOL, however, you can buy down to 0.01 contracts, just tested it.
There’s a minimum total for buy and sell order and a lot step in that the minimum total can be increased. I will check it with my tool and add e result here.
I think you mixed up contracts and orders size.
Contract is always integer. You cannot buy 0.5 contract, but you can specify order size as 0.01SOL. You are able to put SOL amount instead of contracts amount
You might be right. However, what happens when you want to trade in total acc %, it rounds the values up - my increment is 1.2 per safety order, and I get only integer values on the exchange, which at the end sums to about right, but the increments are messed up this way.
As you can see, 5.5% of 785 should be about 40$ or .28 sol, which is in a stark difference from what I get.
I might be missing something, but the way it is calculating atm my strategy isn’t being calculated as it should be.
Ok, so you are talking about linear futures, not inverse.
I can see a difference in precision.
I will check.
I did an update. In next few hours pairs info will be updated, and bot will be able to place orders with decimals in size. Though you might need to restart the active bot to changes to take effect, new bots should work fine.
Thank you for your effort. Now I get an error message, ever since early in the morning, and also after the system restart, on new bots and old restarted ones.
That was fixed too
It works now. Great job guys!