Fix: missing field in SpotPair class for binance and added note in exception thrown #4

Closed
ntorres wants to merge 2 commits from fix-binance-venues into nix-monkeys-fix
Collaborator

Now when missing field in SpotPair class for binane venue throws an exception similar to this::

    |   File "/home/nelson/repos/piker/piker/brokers/binance/api.py", line 437, in _cache_pairs
    |     pair: Pair = pair_type(**item)
    |                  ^^^^^^^^^^^^^^^^^
    | TypeError: Unexpected keyword argument 'otoAllowed'
    |
    | Don't panic, check out this https://binance-docs.github.io/apidocs/spot/en/#exchange-information
    |
    +------------------------------------
Now when missing field in SpotPair class for binane venue throws an exception similar to this:: ``` | File "/home/nelson/repos/piker/piker/brokers/binance/api.py", line 437, in _cache_pairs | pair: Pair = pair_type(**item) | ^^^^^^^^^^^^^^^^^ | TypeError: Unexpected keyword argument 'otoAllowed' | | Don't panic, check out this https://binance-docs.github.io/apidocs/spot/en/#exchange-information | +------------------------------------ ```
ntorres added 2 commits 2024-05-22 03:13:50 +00:00
ntorres added 1 commit 2024-05-22 03:39:48 +00:00
ntorres force-pushed fix-binance-venues from fcdab0fc4e to 31653277a4 2024-05-22 05:52:16 +00:00 Compare
ntorres changed title from Fix missing field in SpotPair class for binance to Fix: missing field in SpotPair class for binance and added note in exception thrown 2024-05-22 14:03:45 +00:00
ntorres closed this pull request 2024-06-12 18:55:19 +00:00

Ok so I already git merged in the needed commits from this branch. So I don’t think we need this open either. You can see the equivalent hashes in the history on that branch.

Ok so I already `git merge`d in the needed commits from this branch. So I don't think we need this open either. You can see the equivalent hashes in the history on that branch.

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: pikers/piker#4
There is no content yet.