New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
position stucked in OPENING state #605
Comments
Hi it's not normal. Can you show me the values you use for the position creation ? |
You can get more logs by running this : |
Here's some logs :
|
Thx! what release do you use? |
Your position amount amount=0.3425279557704925537109375 ETH is different from the trade amount amount=0.3075661361217498779296875 ETH. This is very strange, as the trade created by Cassandre uses the amount in the position. and here, it's different (explaining why it's stuck in OPENING). |
nothing special here :
|
Can you provide the value of the constants, I want to reproduce your code in a unit test. |
Seems var qteToBuy type is source of problem. |
@awikatchikaen you have to use BigDecimal for amount! can you try ? |
It's converted to bigDecimal.
but still nothing :
|
@awikatchikaen you have to write |
ok, that works with the quote.
|
@awikatchikaen I completely agree with that BigDecimal are really not fun! (they are one of the reasons why I created position so most calculus will be made in my code) but working with cryptocurrency and all their digits, you need BigDecimal precision |
I'm in dry/sandbox mode with my kucoin account.
Not sure if it's a bug or misunderstanding but none position are OPENED
logs only show OPENING state for me.
what can cause order not to be fulfilled ? Can i have more logs from cassandre ?
The text was updated successfully, but these errors were encountered: