Draft
Conversation
412961e to
ae46090
Compare
Member
Author
|
It's ready |
410229f to
590d33c
Compare
GuillaumeDSM
reviewed
Jan 2, 2026
Member
GuillaumeDSM
left a comment
There was a problem hiding this comment.
there is no need to store the py version?
22805d0 to
4fbd3ae
Compare
817e755 to
48037c7
Compare
481ac07 to
4fe9988
Compare
5dbeb0d to
113dd63
Compare
119543d to
f329cdc
Compare
c0abda0 to
5bd0e15
Compare
5bd0e15 to
26672b8
Compare
bff543a to
db0bc5e
Compare
Signed-off-by: Herklos <herklos.dev@protonmail.com>
362f200 to
9cfe0e0
Compare
…resolution rounds price to 0
When a market's defaultTickSize (0.01) rounds a low price like 0.003956 to
0.00, makerAmount becomes 0 causing the API to reject the order with:
"invalid amounts, maker and taker amount must be higher than 0"
In buildAndSignOrder, after rounding the price, check if it became 0. If
so, scan the price string for the first non-zero decimal digit to determine
the minimum precision needed, then re-round with that precision.
Example: 0.003956 with priceDecimals=2 → 0.00 (broken)
neededDecimals=3 → re-round → 0.004 (correct)
Also update market['info']['tick_size'] in fetchOrderBook so future order
calls use the correct rounding config once the order book has been fetched.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9cfe0e0 to
b1e1913
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.