Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fetching symbols from bitmex and bit.com #1052

Merged
merged 4 commits into from
Sep 8, 2024

Conversation

maschlr
Copy link
Contributor

@maschlr maschlr commented Aug 16, 2024

Description of code - what bug does this fix / what feature does this add?

  • - Tested
  • - Changelog updated
  • - Tests run and pass (I get an error when running python -m unittest from the main dir, see below)
  • - Flake8 run and all errors/warnings resolved (no errors in the files I've updated)
  • - Contributors file updated (optional)
File "/home/marten/code/projects/cryptofeed/cryptofeed/feed.py", line 20, in <module>
    from cryptofeed.types import OrderBook
ModuleNotFoundError: No module named 'cryptofeed.types'

CHANGES.md Outdated Show resolved Hide resolved
Calling the endpoint with `USD` results in the following error:
`ERROR : BIT.COM: Failed to parse symbol information: ('%s - Failed to collect instrument data - %s', 'BIT.COM', 'Unsupported usdx currency USD, please input [USDT]')`

Fixed by calling only for `USDT`
…ry` key

`ERROR : BITMEX: Failed to parse symbol information: 'expiry'`

Fixed by using `dict.get` to optionally retrieve value.
@bmoscon bmoscon merged commit 0cdc5d7 into bmoscon:master Sep 8, 2024
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