Skip to content

OverflowError: int too big to convert when I use rest_create_market_order(is_buy=True) #12

@vacoolaaa

Description

@vacoolaaa

instrument_id = 1 #ETH-PERP
amount_eth = 0.01
res = client.rest_create_market_order(instrument_id=instrument_id, is_buy=True, quantity=amount_eth)

lib/python3.10/site-packages/eip712_structs/types.py", line 189, in _encode_value
value.to_bytes(self.length // 8, byteorder='big', signed=False) # For validation
OverflowError: int too big to convert

When is_buy=False code works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions