Test api with new dex attribute
This commit is contained in:
@@ -2154,6 +2154,7 @@ def test_api_exchanges(botclient):
|
|||||||
"valid": True,
|
"valid": True,
|
||||||
"supported": True,
|
"supported": True,
|
||||||
"comment": "",
|
"comment": "",
|
||||||
|
"dex": False,
|
||||||
"trade_modes": [
|
"trade_modes": [
|
||||||
{"trading_mode": "spot", "margin_mode": ""},
|
{"trading_mode": "spot", "margin_mode": ""},
|
||||||
{"trading_mode": "futures", "margin_mode": "isolated"},
|
{"trading_mode": "futures", "margin_mode": "isolated"},
|
||||||
@@ -2165,6 +2166,16 @@ def test_api_exchanges(botclient):
|
|||||||
"name": "mexc",
|
"name": "mexc",
|
||||||
"valid": True,
|
"valid": True,
|
||||||
"supported": False,
|
"supported": False,
|
||||||
|
"dex": False,
|
||||||
|
"comment": "",
|
||||||
|
"trade_modes": [{"trading_mode": "spot", "margin_mode": ""}],
|
||||||
|
}
|
||||||
|
waves = [x for x in response["exchanges"] if x["name"] == "wavesexchange"][0]
|
||||||
|
assert waves == {
|
||||||
|
"name": "wavesexchange",
|
||||||
|
"valid": True,
|
||||||
|
"supported": False,
|
||||||
|
"dex": True,
|
||||||
"comment": "",
|
"comment": "",
|
||||||
"trade_modes": [{"trading_mode": "spot", "margin_mode": ""}],
|
"trade_modes": [{"trading_mode": "spot", "margin_mode": ""}],
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user