-
Notifications
You must be signed in to change notification settings - Fork 4
[C-795] update api docs for v1.18.0 chain upgrade #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,7 +194,9 @@ func main() { | |
| <tr ><td class="parameter-td td_text">min_notional</td><td class="type-td td_text">cosmossdk_io_math.LegacyDec</td><td class="description-td td_text">min_notional defines the minimum notional (in quote asset) required for orders in the market (in human readable format)</td></tr> | ||
| <tr ><td class="parameter-td td_text">admin_permissions</td><td class="type-td td_text">uint32</td><td class="description-td td_text">level of admin permissions</td></tr> | ||
| <tr ><td class="parameter-td td_text">quote_decimals</td><td class="type-td td_text">uint32</td><td class="description-td td_text">quote token decimals</td></tr> | ||
| <tr ><td class="parameter-td td_text">open_notional_cap</td><td class="type-td td_text">OpenNotionalCap</td><td class="description-td td_text">open_notional_cap defines the maximum open notional for the market</td></tr></tbody></table> | ||
| <tr ><td class="parameter-td td_text">open_notional_cap</td><td class="type-td td_text">OpenNotionalCap</td><td class="description-td td_text">open_notional_cap defines the maximum open notional for the market</td></tr> | ||
| <tr ><td class="parameter-td td_text">has_disabled_minimal_protocol_fee</td><td class="type-td td_text">bool</td><td class="description-td td_text">has_disabled_minimal_protocol_fee indicates whether the minimal protocol fee is disabled for the market</td></tr> | ||
| <tr ><td class="parameter-td td_text">force_paused_info</td><td class="type-td td_text">ForcePausedInfo</td><td class="description-td td_text">force_paused_info defines additional info for force paused markets, only set when status == ForcePaused</td></tr></tbody></table> | ||
|
Comment on lines
+197
to
+199
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sync BinaryOptions response examples with new fields. Also applies to: 262-275 🤖 Prompt for AI Agents |
||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| <br/> | ||
|
|
@@ -214,7 +216,8 @@ func main() { | |
| <tr ><td class="code-td td_num">9</td><td class="name-td td_text">Pyth</td></tr> | ||
| <tr ><td class="code-td td_num">10</td><td class="name-td td_text">BandIBC</td></tr> | ||
| <tr ><td class="code-td td_num">11</td><td class="name-td td_text">Provider</td></tr> | ||
| <tr ><td class="code-td td_num">12</td><td class="name-td td_text">Stork</td></tr></tbody></table> | ||
| <tr ><td class="code-td td_num">12</td><td class="name-td td_text">Stork</td></tr> | ||
| <tr ><td class="code-td td_num">13</td><td class="name-td td_text">ChainlinkDataStreams</td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| <br/> | ||
|
|
@@ -254,6 +257,23 @@ func main() { | |
| <table class="JSON-TO-HTML-TABLE"><thead><tr><th class="parameter-th">Parameter</th><th class="type-th">Type</th><th class="description-th">Description</th></tr></thead><tbody ><tr ><td class="parameter-td td_text">value</td><td class="type-td td_text">cosmossdk_io_math.LegacyDec</td><td class="description-td td_num"></td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| <br/> | ||
|
|
||
| **ForcePausedInfo** | ||
|
|
||
| <!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./source/json_tables/injective/exchange/v2/ForcePausedInfo.json) --> | ||
| <table class="JSON-TO-HTML-TABLE"><thead><tr><th class="parameter-th">Parameter</th><th class="type-th">Type</th><th class="description-th">Description</th></tr></thead><tbody ><tr ><td class="parameter-td td_text">reason</td><td class="type-td td_text">ForcePausedReason</td><td class="description-td td_num"></td></tr> | ||
| <tr ><td class="parameter-td td_text">mark_price_at_pausing</td><td class="type-td td_text">cosmossdk_io_math.LegacyDec</td><td class="description-td td_num"></td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| <br/> | ||
|
|
||
| **ForcePausedReason** | ||
|
|
||
| <!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./source/json_tables/injective/exchange/v2/ForcePausedReason.json) --> | ||
| <table class="JSON-TO-HTML-TABLE"><thead><tr><th class="code-th">Code</th><th class="name-th">Name</th></tr></thead><tbody ><tr ><td class="code-td td_num">0</td><td class="name-td td_text">QuoteDenomPaused</td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
|
|
||
| ## MsgInstantBinaryOptionsMarketLaunch | ||
|
|
||
|
|
@@ -409,7 +429,8 @@ func main() { | |
| <tr ><td class="code-td td_num">9</td><td class="name-td td_text">Pyth</td></tr> | ||
| <tr ><td class="code-td td_num">10</td><td class="name-td td_text">BandIBC</td></tr> | ||
| <tr ><td class="code-td td_num">11</td><td class="name-td td_text">Provider</td></tr> | ||
| <tr ><td class="code-td td_num">12</td><td class="name-td td_text">Stork</td></tr></tbody></table> | ||
| <tr ><td class="code-td td_num">12</td><td class="name-td td_text">Stork</td></tr> | ||
| <tr ><td class="code-td td_num">13</td><td class="name-td td_text">ChainlinkDataStreams</td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| <br/> | ||
|
|
@@ -728,10 +749,8 @@ async def main() -> None: | |
| subaccount_id=subaccount_id, | ||
| fee_recipient=fee_recipient, | ||
| price=Decimal("0.5"), | ||
| quantity=Decimal(1), | ||
| margin=composer.calculate_margin( | ||
| quantity=Decimal(1), price=Decimal("0.5"), leverage=Decimal(1), is_reduce_only=False | ||
| ), | ||
| quantity=Decimal("1"), | ||
| margin=Decimal("0.5"), | ||
| cid=str(uuid.uuid4()), | ||
| ) | ||
|
|
||
|
|
@@ -1062,7 +1081,7 @@ async def main() -> None: | |
| # prepare trade info | ||
| market_id = "0xfafec40a7b93331c1fc89c23f66d11fbb48f38dfdd78f7f4fc4031fad90f6896" | ||
| status = "Demolished" | ||
| settlement_price = Decimal(1) | ||
| settlement_price = Decimal("1") | ||
| expiration_timestamp = 1685460582 | ||
| settlement_timestamp = 1690730982 | ||
|
|
||
|
|
@@ -1110,7 +1129,8 @@ if __name__ == "__main__": | |
| <tr ><td class="code-td td_num">1</td><td class="name-td td_text">Active</td></tr> | ||
| <tr ><td class="code-td td_num">2</td><td class="name-td td_text">Paused</td></tr> | ||
| <tr ><td class="code-td td_num">3</td><td class="name-td td_text">Demolished</td></tr> | ||
| <tr ><td class="code-td td_num">4</td><td class="name-td td_text">Expired</td></tr></tbody></table> | ||
| <tr ><td class="code-td td_num">4</td><td class="name-td td_text">Expired</td></tr> | ||
| <tr ><td class="code-td td_num">5</td><td class="name-td td_text">ForcePaused</td></tr></tbody></table> | ||
| <!-- MARKDOWN-AUTO-DOCS:END --> | ||
|
|
||
| ### Response Parameters | ||
|
|
@@ -1265,23 +1285,19 @@ async def main() -> None: | |
| market_id=derivative_market_id_create, | ||
| subaccount_id=subaccount_id, | ||
| fee_recipient=fee_recipient, | ||
| price=Decimal(25000), | ||
| quantity=Decimal(0.1), | ||
| margin=composer.calculate_margin( | ||
| quantity=Decimal(0.1), price=Decimal(25000), leverage=Decimal(1), is_reduce_only=False | ||
| ), | ||
| price=Decimal("25000"), | ||
| quantity=Decimal("0.1"), | ||
| margin=Decimal("2500"), | ||
| order_type="BUY", | ||
| cid=str(uuid.uuid4()), | ||
| ), | ||
| composer.derivative_order( | ||
| market_id=derivative_market_id_create, | ||
| subaccount_id=subaccount_id, | ||
| fee_recipient=fee_recipient, | ||
| price=Decimal(50000), | ||
| quantity=Decimal(0.01), | ||
| margin=composer.calculate_margin( | ||
| quantity=Decimal(0.01), price=Decimal(50000), leverage=Decimal(1), is_reduce_only=False | ||
| ), | ||
| price=Decimal("50000"), | ||
| quantity=Decimal("0.01"), | ||
| margin=Decimal("500"), | ||
| order_type="SELL", | ||
| cid=str(uuid.uuid4()), | ||
| ), | ||
|
|
@@ -1292,11 +1308,9 @@ async def main() -> None: | |
| market_id=derivative_market_id_create, | ||
| subaccount_id=subaccount_id, | ||
| fee_recipient=fee_recipient, | ||
| price=Decimal(25100), | ||
| quantity=Decimal(0.1), | ||
| margin=composer.calculate_margin( | ||
| quantity=Decimal(0.1), price=Decimal(25100), leverage=Decimal(1), is_reduce_only=False | ||
| ), | ||
| price=Decimal("25100"), | ||
| quantity=Decimal("0.1"), | ||
| margin=Decimal("2510"), | ||
| order_type="BUY", | ||
| cid=str(uuid.uuid4()), | ||
| ), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,11 @@ | ||
| # Change Log | ||
|
|
||
| ## 2026-02-19 | ||
| - Updated all messages to reflect the changes included in the chain version v1.18.0, and the Indexer for that chain version | ||
| - Added documentation for the new websocket for exchange module events available on the chain nodes | ||
| - Python SDK v1.13.0 | ||
| - Go SDK v1.60.0 | ||
|
Comment on lines
+3
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirm the release date for the new changelog entry. The heading is 2026-02-19 (tomorrow, Feb 19, 2026). If the release isn’t scheduled for that exact date, consider using the actual date or an “Unreleased” heading to prevent confusion. 🤖 Prompt for AI Agents |
||
|
|
||
| ## 2025-11-10 | ||
| - Updated all messages to reflect the changes included in the chain version 1.17.0, and the Indexer for that chain version | ||
| - Python SDK v1.12.0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 2291
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 434
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 158
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 176
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 1269
Critical: Two primary repository versions cannot be verified.
The INJECTIVE_CORE (v1.18.0) and INDEXER (v1.18.3) repositories are not accessible, preventing verification that these version tags exist. These are the core components for the v1.18.0 upgrade.
Six other version tags (COSMOS_SDK v0.50.14-inj.4, IBC_GO v8.7.0-inj.3, COMETBFT v1.0.1-inj.6, WASMD v0.53.3-inj.2, PYTHON_SDK v1.13.0, GO_SDK v1.60.0) were verified as present in their repositories.
Before merging, confirm that INJECTIVE_CORE v1.18.0 and INDEXER v1.18.3 tags exist in their respective repositories and that the repository URLs are correct.
🤖 Prompt for AI Agents