We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59837ef commit ecf013dCopy full SHA for ecf013d
freqtrade/rpc/api_server/api_schemas.py
@@ -622,6 +622,7 @@ class MarketModel(BaseModel):
622
623
class MarketResponse(BaseModel):
624
markets: dict[str, MarketModel]
625
+ exchange_id: str
626
627
628
class SysInfo(BaseModel):
freqtrade/rpc/api_server/api_v1.py
@@ -489,13 +489,14 @@ def markets(
489
handleExchangePayload(query, config_loc)
490
exchange = get_exchange(config_loc)
491
else:
492
- exchange = rpc._exchange
+ exchange = rpc._freqtrade.exchange
493
494
return {
495
"markets": exchange.get_markets(
496
base_currencies=[query.base] if query.base else None,
497
quote_currencies=[query.quote] if query.quote else None,
498
- )
+ ),
499
+ "exchange_id": exchange.id,
500
}
501
502
0 commit comments