Skip to content
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

checksum handling unification #22150

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open

Conversation

ttodua
Copy link
Member

@ttodua ttodua commented Apr 14, 2024

across exchanges/tests, we consistently see this nonce/checksum issues. also, it revealed that users were also claiming to be getting those issues. we should have some common unified way to handle them (either userland codes or either in tests too)

gate - https://app.travis-ci.com/github/ccxt/ccxt/builds/269961871#L3724
poloniex - https://app.travis-ci.com/github/ccxt/ccxt/builds/269961871#L3733
binance - https://app.travis-ci.com/github/ccxt/ccxt/builds/269961871#L3700
binanceusdm - https://app.travis-ci.com/github/ccxt/ccxt/builds/269969966#L3886

and also other exchanges have been throwing those issues.

Also, checksum option was unintuitive imo, and the new name is self-explanatory for users too.

@ttodua ttodua marked this pull request as draft April 14, 2024 18:01
@ttodua
Copy link
Member Author

ttodua commented Apr 25, 2024

@carlosmiei in c# version it is not being transpiled, do you have some clues:
image

@carlosmiei
Copy link
Collaborator

Might be a bug with the ast-transpiler, does it make a difference if you add/remove a comment in the if clause?

@ttodua
Copy link
Member Author

ttodua commented Apr 25, 2024

@carlosmiei wanted your thoughts here, is this too much abstraction (having two methods orderBookSequenceErrorThrow and orderBookSequenceErrorReject) or it's acceptable?

@ttodua ttodua marked this pull request as ready for review May 1, 2024 19:33
@ttodua
Copy link
Member Author

ttodua commented May 1, 2024

@carlosmiei PR ready

client.reject (err, messageHash);
}
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have tried to have common prefix to these methods (OrderBookWhatever), instead of different prefixed like (throwOrderBook... RejectOrderBook)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants