Skip to content

fix(clob): correct the type of the OrderBook timestamp - #1

Merged
roushou merged 1 commit into
roushou:mainfrom
Maher4Ever:main
Jan 5, 2026
Merged

fix(clob): correct the type of the OrderBook timestamp#1
roushou merged 1 commit into
roushou:mainfrom
Maher4Ever:main

Conversation

@Maher4Ever

Copy link
Copy Markdown
Contributor

This PR fixes a typing bug where the clob.markets().order_book(&token_id) fails with the following error:

Serialization error: invalid type: string "1766756005403", expected u64 at line 1 column 198

The issue happens because the Polymarket API returns the timestamp as a string, not an int.

@roushou

roushou commented Jan 5, 2026

Copy link
Copy Markdown
Owner

Hello! Thanks for fix and sorry for the delay, I was in vacation.

It will be available on the the next release soon after merging.

@roushou
roushou merged commit 62be350 into roushou:main Jan 5, 2026
4 checks passed
@roushou

roushou commented Jan 5, 2026

Copy link
Copy Markdown
Owner

Your fix is released in 0.4.0

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.

2 participants