From c3e41526c818d4191a63c0f4141c837fe87acb3e Mon Sep 17 00:00:00 2001 From: jejolare Date: Wed, 30 Apr 2025 18:24:52 +0700 Subject: [PATCH] minor fixes --- docs/build/zano-trade-api/_category_.json | 2 +- .../apply-for-matched-order.md | 2 + .../confirm-transaction.md | 6 +- .../create-new-order/create-new-order.md | 6 +- .../delete-your-order/delete-your-order.md | 8 ++- .../get-active-orders/get-active-orders.md | 1 + .../get-dex-trading-pair.md | 58 +++++++++++++++++++ .../build/zano-trade-api/overview/overview.md | 6 +- .../zano-trade-api/trade-api/trade-api.md | 6 +- 9 files changed, 82 insertions(+), 13 deletions(-) diff --git a/docs/build/zano-trade-api/_category_.json b/docs/build/zano-trade-api/_category_.json index 259bac9..311571b 100644 --- a/docs/build/zano-trade-api/_category_.json +++ b/docs/build/zano-trade-api/_category_.json @@ -1,3 +1,3 @@ { - "label": "Zano trade Api" + "label": "Zano trade API" } diff --git a/docs/build/zano-trade-api/apply-for-matched-order/apply-for-matched-order.md b/docs/build/zano-trade-api/apply-for-matched-order/apply-for-matched-order.md index 049628a..11ce6d7 100644 --- a/docs/build/zano-trade-api/apply-for-matched-order/apply-for-matched-order.md +++ b/docs/build/zano-trade-api/apply-for-matched-order/apply-for-matched-order.md @@ -23,6 +23,8 @@ >- hex_raw_proposal - Hex-encoded proposal raw data(encrypted with common shared key). Includes half-created transaction template and some extra information that would be needed counterparty to finialize and sign transaction #### Response: ```typescript +{ success: boolean; data?: string // error message +} ``` \ No newline at end of file diff --git a/docs/build/zano-trade-api/confirm-transaction/confirm-transaction.md b/docs/build/zano-trade-api/confirm-transaction/confirm-transaction.md index 1a04080..db16efe 100644 --- a/docs/build/zano-trade-api/confirm-transaction/confirm-transaction.md +++ b/docs/build/zano-trade-api/confirm-transaction/confirm-transaction.md @@ -14,6 +14,8 @@ ``` #### Response: ```typescript - success: boolean; - data?: string // error message + { + success: boolean; + data?: string // error message + } ``` \ No newline at end of file diff --git a/docs/build/zano-trade-api/create-new-order/create-new-order.md b/docs/build/zano-trade-api/create-new-order/create-new-order.md index 298fa82..8178a67 100644 --- a/docs/build/zano-trade-api/create-new-order/create-new-order.md +++ b/docs/build/zano-trade-api/create-new-order/create-new-order.md @@ -19,6 +19,8 @@ #### Response: ```typescript - success: boolean; - data?: string // error message + { + success: boolean; + data?: string // error message + } ``` \ No newline at end of file diff --git a/docs/build/zano-trade-api/delete-your-order/delete-your-order.md b/docs/build/zano-trade-api/delete-your-order/delete-your-order.md index d4a2f4d..f381527 100644 --- a/docs/build/zano-trade-api/delete-your-order/delete-your-order.md +++ b/docs/build/zano-trade-api/delete-your-order/delete-your-order.md @@ -12,6 +12,8 @@ ``` #### Response: ```typescript - success: boolean; - data?: string // error message -``` + { + success: boolean; + data?: string // error message + } +``` \ No newline at end of file diff --git a/docs/build/zano-trade-api/get-active-orders/get-active-orders.md b/docs/build/zano-trade-api/get-active-orders/get-active-orders.md index ffe5339..4ff6a50 100644 --- a/docs/build/zano-trade-api/get-active-orders/get-active-orders.md +++ b/docs/build/zano-trade-api/get-active-orders/get-active-orders.md @@ -8,6 +8,7 @@ token: string; pairId: number; } +``` #### Response: ```typescript success: boolean; diff --git a/docs/build/zano-trade-api/get-dex-trading-pair/get-dex-trading-pair.md b/docs/build/zano-trade-api/get-dex-trading-pair/get-dex-trading-pair.md index ac31ca2..b3337b2 100644 --- a/docs/build/zano-trade-api/get-dex-trading-pair/get-dex-trading-pair.md +++ b/docs/build/zano-trade-api/get-dex-trading-pair/get-dex-trading-pair.md @@ -9,3 +9,61 @@ id: number; } ``` + +#### Response: +```typescript +{ + success: boolean; + data: { + id: number; + first_currency_id: number; + second_currency_id: number; + rate: number; + coefficient: number; + high: number; + low: number; + volume: number; + featured: boolean; + createdAt: string; + updatedAt: string; + first_currency: { + id: number; + name: string; + code: string; + type: string; + asset_id: string; + auto_parsed: boolean; + asset_info: { + id: string; + logo: string; + price: number | null; + ticker: string; + asset_id: string; + full_name: string; + meta_info: string; + price_url: string; + decimal_point: number; + current_supply: string; + total_max_supply: string; + }; + whitelisted: boolean; + createdAt: string; + updatedAt: string; + }; + second_currency: { + id: number; + name: string; + code: string; + type: string; + asset_id: string; + auto_parsed: boolean; + asset_info: { + decimal_point: number; + }; + whitelisted: boolean; + createdAt: string; + updatedAt: string; + }; + }; +} +``` \ No newline at end of file diff --git a/docs/build/zano-trade-api/overview/overview.md b/docs/build/zano-trade-api/overview/overview.md index 5634613..4120808 100644 --- a/docs/build/zano-trade-api/overview/overview.md +++ b/docs/build/zano-trade-api/overview/overview.md @@ -1,9 +1,9 @@ # Trade API for custom bots -## Additional Resources +## Resources - [Zano Trade Dex](https://trade.zano.org) - [Zano Documentation](https://docs.zano.org) - [Ionic Swaps Overview](https://docs.zano.org/docs/build/confidential-assets/ionic-swaps) -## RestAPI ENDPOINTS -**base URL** - https://trade.zano.org \ No newline at end of file +## Rest API ENDPOINTS +**Base URL** - https://trade.zano.org \ No newline at end of file diff --git a/docs/build/zano-trade-api/trade-api/trade-api.md b/docs/build/zano-trade-api/trade-api/trade-api.md index 4670727..68612be 100644 --- a/docs/build/zano-trade-api/trade-api/trade-api.md +++ b/docs/build/zano-trade-api/trade-api/trade-api.md @@ -20,6 +20,8 @@ #### Response: ```typescript - success: boolean; - data?: string // error message + { + success: boolean; + data?: string // error message + } ``` \ No newline at end of file