Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions specs/rest-api.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,10 @@ components:
type: string
active:
type: boolean
isRfq:
type: boolean
isOffHours:
type: boolean
status:
$ref: "#/components/schemas/MarketStatus"
marketStats:
Expand Down
1 change: 1 addition & 0 deletions tests/clients/test_rest_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions x10/models/market.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class MarketModel(X10BaseModel):
collateral_asset_name: str
collateral_asset_precision: int
active: bool
is_rfq: bool

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have is_off_hours as well?

market_stats: MarketStatsModel
trading_config: TradingConfigModel
l2_config: L2ConfigModel
Expand Down
Loading