Skip to content

Conversation

@Bvvvp009
Copy link
Contributor

Fixes #106

Spot market orders (market_id >= 2048) were incorrectly routed to perps market 0 due to uint8_t overflow. The uint8_t type (max 255) was truncating spot market IDs (2048+) to 0.

Updated CreateOrderTxReq struct MarketIndex field from uint8_t to int16_t in Python ctypes definition and all platform header files to match lighter-go sharedlib fix.

Fixes elliottech#106

Spot market orders (market_id >= 2048) were incorrectly routed to perps
market 0 due to uint8_t overflow. The uint8_t type (max 255) was truncating
spot market IDs (2048+) to 0.

Updated CreateOrderTxReq struct MarketIndex field from uint8_t to int16_t
in Python ctypes definition and all platform header files to match
lighter-go sharedlib fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error Spot_market_id 2048 since 1.0.2 that create order in the Perps Market

1 participant