crypto-crawler / crypto-crawler-rs

A rock-solid cryptocurrency crawler library.
Apache License 2.0
217 stars 71 forks source link

fix: parse `RawOrderbookMsg` while subscribing okx books5 event #20

Closed GhostLee closed 2 years ago

GhostLee commented 2 years ago

the books5 event doesn't include checksum field and action field, but it will be parsed into RawOrderbookMsg by parse_l2 function, so fix it to support default checksum field and action field.

soulmachine commented 2 years ago

The logic of this PR has been absorbed by this commit https://github.com/crypto-crawler/crypto-crawler-rs/commit/99100f4d7a6f950d950433b28c690634686cefa5 , closing this PR now.

Thanks for pointing out this bug and creating this PR, @GhostLee !