diff --git a/specs/rest-api.openapi.yaml b/specs/rest-api.openapi.yaml index 840740a..6e6e7b1 100644 --- a/specs/rest-api.openapi.yaml +++ b/specs/rest-api.openapi.yaml @@ -369,6 +369,10 @@ components: type: string active: type: boolean + isRfq: + type: boolean + isOffHours: + type: boolean status: $ref: "#/components/schemas/MarketStatus" marketStats: diff --git a/tests/clients/test_rest_api_client.py b/tests/clients/test_rest_api_client.py index f44c00e..13eb369 100644 --- a/tests/clients/test_rest_api_client.py +++ b/tests/clients/test_rest_api_client.py @@ -50,6 +50,7 @@ async def test_get_markets(aiohttp_server, create_btc_usd_market): "collateralAssetName": "USD", "collateralAssetPrecision": 6, "active": True, + "isRfq": True, "marketStats": { "dailyVolume": "2410800.768021", "dailyVolumeBase": "37.94502", diff --git a/tests/fixtures/market.py b/tests/fixtures/market.py index cde206d..301dd0e 100644 --- a/tests/fixtures/market.py +++ b/tests/fixtures/market.py @@ -14,6 +14,7 @@ def get_btc_usd_market_json_data(): "collateralAssetName": "USD", "collateralAssetPrecision": 6, "active": true, + "isRfq": true, "marketStats": { "dailyVolume": "2410800.768021", "dailyVolumeBase": "37.94502", diff --git a/x10/models/market.py b/x10/models/market.py index ad885e0..849c6da 100644 --- a/x10/models/market.py +++ b/x10/models/market.py @@ -100,6 +100,7 @@ class MarketModel(X10BaseModel): collateral_asset_name: str collateral_asset_precision: int active: bool + is_rfq: bool market_stats: MarketStatsModel trading_config: TradingConfigModel l2_config: L2ConfigModel