Skip to content

Conversation

clickingbuttons
Copy link
Contributor

@clickingbuttons clickingbuttons commented Apr 28, 2022

Support date for all date string query parameters. Supporting dates doesn't require any code changes (just type changes) since we already call str() on params:

>>> str(date(2020,3,3))
'2020-03-03

For quotes and trades we also support int and datetime as nanos since epoch. I wrote a helper time_mult(timestamp_res: str) -> int for it.

Also add verbose=true option for request debugging.

@clickingbuttons clickingbuttons merged commit 53ab30e into v1 Apr 28, 2022
@clickingbuttons clickingbuttons deleted the date-parms branch April 28, 2022 19:01
clickingbuttons pushed a commit that referenced this pull request Apr 29, 2022
* add time mult

* add example
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