question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tiers[symbol] should be tiers['symbol']

See original GitHub issue

Hi,

I’m using Freqtrade, and testing the future capabilities with it, what is using CCXT.

When we call this method I got an error, and when I looked through the code there is a problem. That tiers[symbol] should be [‘symbol’]. I believe the problem comes from here. Could you please check it?

`

if ((market is not None) and market['contract'] and (symbols_length == 0 or symbols.includes(symbol))):

File “/home/ftuser/.local/lib/python3.9/site-packages/ccxt/binance.py”, line 4588, in fetch_leverage_tiers

return self.parse_leverage_tiers(response, symbols, 'symbol')

File “/home/ftuser/.local/lib/python3.9/site-packages/ccxt/base/exchange.py”, line 2787, in parse_leverage_tiers

if ((market is not None) and market['contract'] and (symbols_length == 0 or symbols.includes(symbol))):

KeyError: ‘contract’ ` https://github.com/ccxt/ccxt/blob/1bd6ca5f76abe59dc52c8148f4f4bea3cdd080ae/python/ccxt/base/exchange.py#L2788

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
kroitorcommented, Feb 26, 2022

@richardjozsa @xmatthias fixed in 1.74.36, thanks for your help! (the new build will arrive in ~20 minutes)

1reaction
richardjozsacommented, Feb 26, 2022

Lovely, thanks! and sorry for the inconvinience, I’m not faimiliar yet with your system 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Math Symbol Tier List - YouTube
If you're one of the mathematical symbols mentioned in this video plz ... Your browser can 't play this video. ... Math Symbol...
Read more >
Tire Symbols: What Do the Numbers on a Tire Mean?
After the aspect ratio, there will be a single letter listed which represents the tire construction. There are various construction styles for tires...
Read more >
Mountain/Snowflake Symbol Tires & M+S Tires Explained
One is the M+S (mud and snow) symbol, and the second is the mountain/snowflake symbol. Both are based on standardized tire industry testing, ......
Read more >
1983 Tier Symbol Stock Vectors, Images & Vector Art
Tier Symbol vectors. 1,983 tier symbol vectors and graphics are available royalty-free. See tier symbol stock video clips. Vectors. Clear all.
Read more >
Tier Symbol Assignment Table Tier Factor Table
Table indicate the Rating Plan and Tier Factor that should be assigned to the policy. Tier Symbol Assignment Table. 1 Safety Account Credit....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found