Skip to content

Floating precision in auto-order orderId makes order cancelling impossible #101

@liuhongyuand

Description

@liuhongyuand

I noticed there’s precision loss in the orderId I get. When placing orders and querying them via the SDK, Gate’s orderId is a very large number, so precision gets lost and the orderId becomes incorrect, which makes it impossible to cancel the order.

https://www.gate.com/docs/developers/apiv4/en/#create-price-triggered-order-2
https://www.gate.com/docs/developers/apiv4/en/#query-auto-order-list
https://www.gate.com/docs/developers/apiv4/en/#cancel-single-auto-order-2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions