Skip to content

Commit 1092937

Browse files
authored
update api (#155)
* update api * fix(paper_client): keep OrderBookDepth/PriceLevel; backfill new required fields in tests The new OpenAPI spec drops OrderBookDepth/PriceLevel, but lighter/paper_client/order_book.py and the paper-client tests still depend on them. Restore the two model files (and their docs/__init__ exports) so the paper client keeps working without changes. Also patch test/paper_client/helpers.py for new required fields the regen introduced on MarketConfig (rfq_enabled) and PerpsOrderBookDetail (is_maker_fee_enabled, is_taker_fee_enabled, funding_clamp_small, funding_clamp_big, base_interest_rate), which were hidden behind the ImportError at pytest collection time.
1 parent 32efef8 commit 1092937

245 files changed

Lines changed: 17894 additions & 20358 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi-generator/FILES

Lines changed: 46 additions & 164 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 154 additions & 103 deletions
Large diffs are not rendered by default.

docs/Account.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**code** | **int** | |
99
**message** | **str** | | [optional]
1010
**account_type** | **int** | |
11+
**account_trading_mode** | **int** | Classic=0 and Unified=1 |
1112
**index** | **int** | |
1213
**l1_address** | **str** | |
1314
**cancel_all_time** | **int** | |
@@ -18,7 +19,6 @@ Name | Type | Description | Notes
1819
**status** | **int** | |
1920
**collateral** | **str** | |
2021
**transaction_time** | **int** | |
21-
**account_trading_mode** | **int** | |
2222

2323
## Example
2424

docs/AccountApi.md

Lines changed: 168 additions & 170 deletions
Large diffs are not rendered by default.

docs/AccountAsset.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
99
**asset_id** | **int** | |
1010
**balance** | **str** | |
1111
**locked_balance** | **str** | |
12+
**margin_balance** | **str** | |
13+
**margin_mode** | **str** | |
1214

1315
## Example
1416

docs/AccountLimits.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ Name | Type | Description | Notes
88
**code** | **int** | |
99
**message** | **str** | | [optional]
1010
**max_llp_percentage** | **int** | |
11-
**max_llp_amount** | **str** | |
1211
**user_tier** | **str** | |
1312
**can_create_public_pool** | **bool** | |
14-
**user_tier_name** | **str** | |
13+
**max_llp_amount** | **str** | |
1514
**current_maker_fee_tick** | **int** | |
1615
**current_taker_fee_tick** | **int** | |
17-
**leased_lit** | **str** | |
18-
**effective_lit_stakes** | **str** | |
16+
**effective_lit_stakes** | **str** | Effective staked LIT shares including active leases. |
17+
**leased_lit** | **str** | Total actively leased LIT. |
18+
**user_tier_name** | **str** | |
19+
**user_tier_last_update** | **int** | | [optional]
1920

2021
## Example
2122

docs/AccountMarginStats.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/AccountMarketStats.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/AccountMetadata.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ Name | Type | Description | Notes
1010
**description** | **str** | |
1111
**can_invite** | **bool** | Remove After FE uses L1 meta endpoint |
1212
**referral_points_percentage** | **str** | Remove After FE uses L1 meta endpoint |
13-
**can_rfq** | **bool** | |
1413
**created_at** | **int** | |
14+
**can_rfq** | **bool** | |
15+
**can_rfq_market_ids** | **List[str]** | |
1516

1617
## Example
1718

docs/AccountStats.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)