### POST /payment/exchange-create Source: https://coincraddle.com/docs/api/index Initiates a new payment exchange. This endpoint is used to start the process of exchanging one cryptocurrency for another. ```APIDOC ## POST /payment/exchange-create ### Description This request creates – initiates - the payment exchange process. ### Method POST ### Endpoint /payment/exchange-create ### Parameters #### Query Parameters - **key** (string) - Required - API key for authentication. - **destinationAddress** (string) - Required - The address where the destination currency should be sent. - **destinationTag** (string) - Optional - Tag for the destination address if required (e.g., for XRP). - **refundAddress** (string) - Required - The address to which any excess or refund should be sent. - **refundTag** (string) - Optional - Tag for the refund address if required. - **from** (string) - Required - The currency to be sent. - **to** (string) - Required - The currency to be received. - **amountTo** (float) - Required - The amount of the destination currency to receive. ### Request Example ``` https://coincraddle.com/v1/api/payment/exchange-create?key=3r8wzm4c8uo9ep5tk&from=BTC&to=ETH&amountTo=0.1&destinationAddress=0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` ### Response #### Success Response (200) - **id** (string) - Unique identifier for the exchange. - **depositAddress** (string) - The address where the source currency should be deposited. - **depositTag** (string) - Tag for the deposit address if required. #### Response Example ```json { "id": "2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "depositAddress": "bc1qgdjqv0av3q56jvd82tkdjpy7gdp9ut8tlqmgrpmv24sq90ecnvqqjwvw97", "depositTag": "" } ``` ``` -------------------------------- ### Create Payment Exchange - GET Request Source: https://coincraddle.com/docs/api/index Initiates a cryptocurrency exchange payment. Requires an API key, source and destination currencies, amount, and addresses. Returns a deposit address and ID for the transaction. ```HTTP GET https://coincraddle.com/v1/api/payment/exchange-create?key=3r8wzm4c8uo9ep5tk&from=BTC&to=ETH&amountTo=0.1&destinationAddress=0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` -------------------------------- ### Get Exchange Status - Response JSON Source: https://coincraddle.com/docs/api/index Example successful JSON response for retrieving exchange status. It includes details like current status, addresses, amounts, and potential emergency actions. ```JSON { 'status' : 'deposit_received', 'from' : 'BTC', 'to' : 'USDT', 'depositAddress' : '1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX', 'depositTag' : '', 'destinationAddress' : '0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5', 'destinationTag' : '', 'refundAddress' : 'bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh', 'refundTag' : '', 'expectedAmountFrom' : '0.1', "expectedAmountTo" : '5443.75908463', "amountFrom" : '0.1', "date" : '01.05.2021 10:24:30', "txId" : null, "amountTo" : null, "emergency" : { "status" : 'EXPIRED' } "result" : true } ``` -------------------------------- ### Create Payment Exchange - Response JSON Source: https://coincraddle.com/docs/api/index Example successful JSON response for the payment exchange creation. It includes a unique ID for the transaction and the deposit address. ```JSON { 'id' : '2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a', 'depositAddress' : 'bc1qgdjqv0av3q56jvd82tkdjpy7gdp9ut8tlqmgrpmv24sq90ecnvqqjwvw97', 'depositTag' : '' } ``` -------------------------------- ### GET /exchanges-status Source: https://coincraddle.com/docs/api/index Retrieves the statuses for multiple cryptocurrency exchanges. ```APIDOC ## GET /exchanges-status ### Description Getting information about the exchanges statuses. ### Method GET ### Endpoint /exchanges-status ### Parameters #### Query Parameters - **key** (string) - Required - API key for authentication. ### Request Example ``` https://coincraddle.com/v1/api/exchanges-status?key=3r8wzm4c8uo9ep5tk ``` ### Response #### Success Response (200) (The response structure for this endpoint is not detailed in the provided text, but it is expected to return a list of exchange statuses.) ``` -------------------------------- ### Get Multiple Exchange Statuses - GET Request Source: https://coincraddle.com/docs/api/index Retrieves the statuses for multiple cryptocurrency exchanges. Requires an API key. This endpoint is useful for batch checking exchange progress. ```HTTP GET https://coincraddle.com/v1/api/exchanges-status?key=3r8wzm4c8uo9ep5tk ``` -------------------------------- ### Get Exchange Status - GET Request Source: https://coincraddle.com/docs/api/index Retrieves the current status of a cryptocurrency exchange. Requires an API key and the exchange ID. Returns detailed information about the transaction. ```HTTP GET https://coincraddle.com/v1/api/exchange-status?key=3r8wzm4c8uo9ep5tk&id=2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a ``` -------------------------------- ### GET /websites/coincraddle_api/exchanges Source: https://coincraddle.com/docs/api/index Retrieves a list of cryptocurrency exchanges with specified parameters. Supports pagination and filtering by key. ```APIDOC ## GET /websites/coincraddle_api/exchanges ### Description Retrieves a list of cryptocurrency exchanges with specified parameters. Supports pagination and filtering by key. ### Method GET ### Endpoint /websites/coincraddle_api/exchanges ### Parameters #### Query Parameters - **key** (string) - Required - Unique identifier for the request. - **page** (int) - Optional - The page number for pagination. Defaults to 0. - **limit** (int) - Optional - The number of results per page. Defaults to 100, with a maximum of 100. ### Request Example ``` GET /websites/coincraddle_api/exchanges?key=3r8wzm4c8uo9ep5tk&page=0&limit=100 ``` ### Response #### Success Response (200) - **exchanges** (array) - An array of exchange objects. - **id** (string) - The unique identifier for the exchange. - **status** (string) - The current status of the exchange (e.g., "new", "success", "time_expired"). - **from** (string) - The source cryptocurrency symbol. - **to** (string) - The destination cryptocurrency symbol. - **depositAddress** (string) - The address for depositing the source cryptocurrency. - **depositTag** (string) - The tag for the deposit address, if applicable. - **destinationAddress** (string) - The address for sending the destination cryptocurrency. - **destinationTag** (string) - The tag for the destination address, if applicable. - **refundAddress** (string) - The address for refunding the source cryptocurrency. - **refundTag** (string) - The tag for the refund address, if applicable. - **expectedAmountFrom** (string) - The expected amount of the source cryptocurrency. - **expectedAmountTo** (string) - The expected amount of the destination cryptocurrency. - **amountFrom** (string|null) - The actual amount of the source cryptocurrency received. - **date** (string) - The date and time of the exchange transaction. - **txId** (string|null) - The transaction ID on the blockchain, if available. - **amountTo** (string|null) - The actual amount of the destination cryptocurrency sent. - **limit** (int) - The limit of results per page. - **page** (int) - The current page number. - **result** (boolean) - Indicates if the request was successful. #### Response Example ```json { "exchanges":[ { "id":"2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "status":"time_expired", "from":"ICX", "to":"BAT", "depositAddress":"hxd30cf2e9dd32f987d7858d7e964bf173b7429547", "depositTag":"", "destinationAddress":"0xc406e35bbcec5dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593040aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"479", "expectedAmountTo":"440.26791571754", "amountFrom":null, "date":"19.09.2023 19:20:58", "txId":null, "amountTo":null } ], "limit":100, "page":0, "result":true } ``` ### Explanatory Note List of used statuses: `new` - new exchange (awaiting deposit) `waiting_deposit` - deposit confirming `deposit_received` - deposit is received `exchanging` - in the process of exchange `sending` - in the process of sending `success` - exchange completed successfully `time_expired` - the waiting time for funds has expired `payment_time_expired` - the waiting time for funds to make a payment has expired `failed` - the exchange ended with an error `sending_failed` - sending attempt failed `reverted` - the funds were returned to the client `payment_halted` - funds have arrived but an exchange is on hold The list of statuses of suspended orders: `EXPIRED` - the transaction was received after the expiration of the order `LESS` - a transaction was sent with an amount less than in the order ``` -------------------------------- ### Retrieve Exchange History (GET Request) Source: https://coincraddle.com/docs/api/index This code snippet demonstrates how to make a GET request to the Coinraddle API to fetch exchange history. It requires an API key as a query parameter. The response is a JSON object containing details of past exchanges. ```HTTP GET https://coincraddle.com/v1/api/exchange-history?key=3r8wzm4c8uo9ep5tk ``` -------------------------------- ### Example API Response Structure Source: https://coincraddle.com/docs/api/index This JSON object represents a successful response from the exchange-history endpoint. It includes details for each exchange, such as ID, status, currency pairs, addresses, amounts, and timestamps. The 'result' field indicates the overall success of the request. ```JSON { "0":{ "id":"2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "status":"time_expired", "from":"ICX", "to":"BAT", "depositAddress":"hxd30cf2e9dd32f987d7858d7e964bf173b7429547", "depositTag":"", "destinationAddress":"0xc406e35bbcec5dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593040aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"479", "expectedAmountTo":"440.26791571754", "amountFrom":null, "date":"19.09.2023 19:20:58", "txId":null, "amountTo":null }, "1":{ "id":"3b5sa1n8-ev7c-4c43-b5ud-aa2a9347fa6k", "status":"time_expired", "from":"TRX", "to":"USDTTRC20", "depositAddress":"TCQLDLUJ6iXaVx5ZYPUitgbsJietQmwXbu", "depositTag":"", "destinationAddress":"TLUQNgT28ha3hadx9CEptJeXrG7PeBaTC9", "destinationTag":"", "refundAddress":"TLUQNgT28ha3hadx9CEptJfXre7PeBaTC9", "refundTag":"", "expectedAmountFrom":"900", "expectedAmountTo":"71.689076", "amountFrom":null, "date":"12.09.2023 15:12:40", "txId":null, "amountTo":null }, "2":{ "id":"16257e7f-f9fc-4dbb-8ac7-63d0004b3064", "status":"success", "from":"ICX", "to":"BAT", "depositAddress":"hxfb212d7f1d5dba665c306f26d4bbcd83fdd77cf2", "depositTag":"", "destinationAddress":"0xc406e35bacec3dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593240aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"348.884502", "expectedAmountTo":307.0772074462869, "amountFrom":"348.86450200", "date":"13.09.2023 09:13:25", "txId":"0xf7ab1826c2a186ce596abf67a964716f30efa40c8e07c70d92ac297cc4c94b88", "amountTo":"306.43493965" }, "result":true } ``` -------------------------------- ### Emergency Action - Response JSON Source: https://coincraddle.com/docs/api/index Example successful JSON response for the emergency action endpoint, indicating the result of the chosen action. ```JSON { "result": true } ``` -------------------------------- ### GET /exchange-status Source: https://coincraddle.com/docs/api/index Retrieves the current status of a specific cryptocurrency exchange. ```APIDOC ## GET /exchange-status ### Description Getting information about the current exchange status. ### Method GET ### Endpoint /exchange-status ### Parameters #### Query Parameters - **key** (string) - Required - API key for authentication. - **id** (string) - Required - The ID of the exchange order. ### Request Example ``` https://coincraddle.com/v1/api/exchange-status?key=3r8wzm4c8uo9ep5tk&id=2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a ``` ### Response #### Success Response (200) - **status** (string) - The current status of the exchange (e.g., `new`, `deposit_received`, `success`). - **from** (string) - The source currency. - **to** (string) - The destination currency. - **depositAddress** (string) - The deposit address for the source currency. - **depositTag** (string) - Tag for the deposit address if applicable. - **destinationAddress** (string) - The destination address for the target currency. - **destinationTag** (string) - Tag for the destination address if applicable. - **refundAddress** (string) - The address for refunds. - **refundTag** (string) - Tag for the refund address if applicable. - **expectedAmountFrom** (string) - The expected amount of the source currency. - **expectedAmountTo** (string) - The expected amount of the destination currency. - **amountFrom** (string) - The actual amount of the source currency received. - **date** (string) - The date and time of the exchange initiation. - **txId** (string|null) - The transaction ID if the exchange is completed. - **amountTo** (string|null) - The actual amount of the destination currency sent. - **emergency** (object) - Emergency status details, if applicable. - **status** (string) - The emergency status (e.g., `EXPIRED`). - **result** (boolean) - Indicates if the request was successful. #### Response Example ```json { "status": "deposit_received", "from": "BTC", "to": "USDT", "depositAddress": "1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX", "depositTag": "", "destinationAddress": "0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5", "destinationTag": "", "refundAddress": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh", "refundTag": "", "expectedAmountFrom": "0.1", "expectedAmountTo": "5443.75908463", "amountFrom": "0.1", "date": "01.05.2021 10:24:30", "txId": null, "amountTo": null, "emergency": { "status": "EXPIRED" }, "result": true } ``` #### Explanatory Note List of used statuses: - `new` - new exchange (awaiting deposit) - `waiting_deposit` - deposit confirming - `deposit_received` - deposit is received - `exchanging` - in the process of exchange - `sending` - in the process of sending - `success` - exchange completed successfully - `time_expired` - the waiting time for funds has expired - `payment_time_expired` - the waiting time for funds to make a payment has expired - `failed` - the exchange ended with an error - `sending_failed` - sending attempt failed - `reverted` - the funds were returned to the client - `payment_halted` - funds have arrived but an exchange is on hold The list of statuses of suspended orders: - `EXPIRED` - the transaction was received after the expiration of the order - `LESS` - a transaction was sent with an amount less than in the order ``` -------------------------------- ### Emergency Action - GET Request Source: https://coincraddle.com/docs/api/index Allows choosing an action for a time-expired payment order. Requires an API key, order ID, and a choice between continuing the exchange or refunding. A refund address is mandatory if a refund is chosen. ```HTTP GET https://coincraddle.com/v1/api/payment/emergency?key=3r8wzm4c8uo9ep5tk&id=2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a&needExchange=0&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` -------------------------------- ### GET /payment/emergency Source: https://coincraddle.com/docs/api/index Handles actions for an order when the payment time has expired. Allows choosing between continuing the exchange or receiving a refund. ```APIDOC ## GET /payment/emergency ### Description Selecting an action (continuation of exchange or return) for an order in the `payment_time_expired` status. ### Method GET ### Endpoint /payment/emergency ### Parameters #### Query Parameters - **key** (string) - Required - API key for authentication. - **id** (string) - Required - The ID of the exchange order. - **needExchange** (int) - Required - `1` to continue the exchange, `0` to refund. - **refundAddress** (string) - Optional - Required if `needExchange` is `0`. The address for the refund. - **refundTag** (string) - Optional - Tag for the refund address if required. ### Request Example ``` https://coincraddle.com/v1/api/payment/emergency?key=3r8wzm4c8uo9ep5tk&id=2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a&needExchange=0&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` ### Response #### Success Response (200) - **result** (boolean) - Indicates if the action was processed successfully. #### Response Example ```json { "result": true } ``` #### Explanatory Note - `needExchange: 1` — Continue the exchange at the market rate at the time the selection was made or at the time the order was corrected. - `needExchange: 0` — Refund minus miner fee. - `refundAddress` is required if `needExchange` is `0`. ``` -------------------------------- ### GET /exchange-history Source: https://coincraddle.com/docs/api/index Retrieves a list of all exchanges associated with a given API key. This endpoint provides comprehensive details for each exchange, including status, currency pairs, addresses, amounts, and transaction IDs. ```APIDOC ## GET /exchange-history ### Description Retrieves a list of all exchanges associated with a given API key. This endpoint provides comprehensive details for each exchange, including status, currency pairs, addresses, amounts, and transaction IDs. ### Method GET ### Endpoint `/v1/api/exchange-history` ### Parameters #### Query Parameters - **key** (string) - Required - Your unique API key for authentication. - **ids** (array) - Optional - A list of exchange IDs to filter the results. ### Request Example ```json { "key": "3r8wzm4c8uo9ep5tk", "ids": ["2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "3b5sa1n8-ev7c-4c43-b5ud-aa2a9347fa6k"] } ``` ### Response #### Success Response (200) - **result** (boolean) - Indicates if the request was successful. - **[exchange_id]** (object) - An object containing details for each exchange, keyed by its ID. Each exchange object includes: - **id** (string) - The unique identifier for the exchange. - **status** (string) - The current status of the exchange (e.g., `new`, `success`, `time_expired`). - **from** (string) - The source currency symbol. - **to** (string) - The destination currency symbol. - **depositAddress** (string) - The address where the user should deposit funds. - **depositTag** (string) - The tag associated with the deposit address, if applicable. - **destinationAddress** (string) - The address where the funds will be sent after exchange. - **destinationTag** (string) - The tag associated with the destination address, if applicable. - **refundAddress** (string) - The address to which funds will be refunded if the exchange fails or times out. - **refundTag** (string) - The tag associated with the refund address, if applicable. - **expectedAmountFrom** (string) - The expected amount to be deposited. - **expectedAmountTo** (string) - The expected amount to be received after the exchange. - **amountFrom** (string|null) - The actual amount deposited, if available. - **date** (string) - The date and time the exchange was initiated. - **txId** (string|null) - The transaction ID of the exchange, if completed. - **amountTo** (string|null) - The actual amount received after the exchange, if available. #### Response Example ```json { "0":{ "id":"2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "status":"time_expired", "from":"ICX", "to":"BAT", "depositAddress":"hxd30cf2e9dd32f987d7858d7e964bf173b7429547", "depositTag":"", "destinationAddress":"0xc406e35bbcec5dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593040aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"479", "expectedAmountTo":"440.26791571754", "amountFrom":null, "date":"19.09.2023 19:20:58", "txId":null, "amountTo":null }, "1":{ "id":"3b5sa1n8-ev7c-4c43-b5ud-aa2a9347fa6k", "status":"time_expired", "from":"TRX", "to":"USDTTRC20", "depositAddress":"TCQLDLUJ6iXaVx5ZYPUitgbsJietQmwXbu", "depositTag":"", "destinationAddress":"TLUQNgT28ha3hadx9CEptJeXrG7PeBaTC9", "destinationTag":"", "refundAddress":"TLUQNgT28ha3hadx9CEptJfXre7PeBaTC9", "refundTag":"", "expectedAmountFrom":"900", "expectedAmountTo":"71.689076", "amountFrom":null, "date":"12.09.2023 15:12:40", "txId":null, "amountTo":null }, "result":true } ``` ### Explanatory Note List of used statuses: `new` - new exchange (awaiting deposit) `waiting_deposit` - deposit confirming `deposit_received` - deposit is received `exchanging` - in the process of exchange `sending` - in the process of sending `success` - exchange completed successfully `time_expired` - the waiting time for funds has expired `payment_time_expired` - the waiting time for funds to make a payment has expired `failed` - the exchange ended with an error `sending_failed` - sending attempt failed `reverted` - the funds were returned to the client `payment_halted` - funds have arrived but an exchange is on hold The list of statuses of suspended orders: `EXPIRED` - the transaction was received after the expiration of the order `LESS` - a transaction was sent with an amount less than in the order ``` -------------------------------- ### Get Exchange Rate for Transaction Amount Source: https://coincraddle.com/docs/api/index Retrieves the current exchange rate between two currencies for a specified amount. Transaction fees are not included. Supports fixed or floating rates. ```HTTP GET https://coincraddle.com/v1/api/rate?key=3r8wzm4c8uo9ep5tk&from=BTC&to=USDT&amount=1&fix=0 ``` -------------------------------- ### List Available Currencies Source: https://coincraddle.com/docs/api/index Fetches a list of all supported cryptocurrencies, including details like minimum/maximum transaction amounts, network information, and availability. ```HTTP GET https://coincraddle.com/v1/api/currencies?key=3r8wzm4c8uo9ep5tk ``` -------------------------------- ### Exchange Creation API Source: https://coincraddle.com/docs/api/index Initiates a cryptocurrency exchange between two specified currencies with given amounts and addresses. ```APIDOC ## GET /exchange-create ### Description This request creates – initiates – the exchange. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/exchange-create` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. - **from** (string) - Required - The source currency code (e.g., BTC). - **to** (string) - Required - The target currency code (e.g., ETH). - **amount** (float) - Required - The amount of the source currency to exchange. - **destinationAddress** (string) - Required - The address where the exchanged currency will be sent. - **refundAddress** (string) - Required - The address to which the funds will be refunded if the exchange fails. - **fix** (int) - Optional - Set to 1 for a fixed rate, 0 for a floating rate. Defaults to 0. ### Request Example ``` https://coincraddle.com/v1/api/exchange-create?key=3r8wzm4c8uo9ep5tk&from=BTC&to=ETH&amount=0.1&destinationAddress=0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh&fix=0 ``` ### Response *(Response details for this endpoint were not provided in the input text.)* ``` -------------------------------- ### Initiate Cryptocurrency Exchange Source: https://coincraddle.com/docs/api/index Creates and initiates a cryptocurrency exchange transaction. Requires specifying source and destination currencies, amounts, and addresses. ```HTTP GET https://coincraddle.com/v1/api/exchange-create?key=3r8wzm4c8uo9ep5tk&from=BTC&to=ETH&amount=0.1&destinationAddress=0xDAFEA492D9c6733ae3d56b7Ed1ADB60692c98Bc5&refundAddress=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh&fix=0 ``` -------------------------------- ### Currency List API Source: https://coincraddle.com/docs/api/index Retrieves a list of all available currencies supported by the Coinraddle API. ```APIDOC ## GET /currencies ### Description This request gets the list of all available currencies. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/currencies` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. ### Request Example ``` https://coincraddle.com/v1/api/currencies?key=3r8wzm4c8uo9ep5tk ``` ### Response #### Success Response (200) - **[CurrencyCode]** (object) - An object containing details for each currency. - **coinName** (string) - The full name of the coin. - **minamount** (float) - The minimum transaction amount for this currency. - **maxamount** (float) - The maximum transaction amount for this currency. - **tagname** (string) - The name of the tag if required (e.g., MEMO). - **network** (string) - The network associated with the currency (e.g., erc20). - **available** (boolean) - Indicates if the currency is currently available. #### Response Example ```json { "BTC": { "coinName": "Bitcoin", "minamount": 0.1, "maxamount": 120, "tagname": "", "network": "", "available": true }, "USDT": { "coinName": "Tether", "minamount": 1678.66, "maxamount": 2757528, "tagname": "", "network": "erc20", "available": true }, "ETC": { "coinName": "Ethereum Classic", "minamount": 102.51, "maxamount": 1021451, "tagname": "", "network": "", "available": true }, "HBAR": { "coinName": "Hedera", "minamount": 34045.98, "maxamount": 39867109, "tagname": "MEMO", "network": "", "available": true } } ``` #### Note If the `tagname` is not an empty value, the tag is a mandatory parameter for this currency. ``` -------------------------------- ### Pairs List API Source: https://coincraddle.com/docs/api/index Retrieves a list of all currency pairs available for exchange on the Coinraddle platform. ```APIDOC ## GET /pairs ### Description This request gets all pairs available for exchange. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/pairs` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. ### Request Example ``` https://coincraddle.com/v1/api/pairs?key=3r8wzm4c8uo9ep5tk ``` ### Response #### Success Response (200) - **[SourceCurrency]** (array) - An array of currency codes that can be exchanged from the source currency. #### Response Example ```json { "BTC": [ "ZEC", "DAI", "USDT", "ETC", "BNB", "XRP" ], "XMR": [ "USDC", "BTC", "USDT", "TUSD" ], "DASH": [ "BTC", "USDT", "УЕР" ], "USDC": [ "USDT", "ZEC" ], "LOOM": [ "ETH", "PERL" ], "XRP": [ "TRX" ], "ADA": [ "USDT" ], "QTUM": [ "BTC" ] } ``` ``` -------------------------------- ### List Available Exchange Pairs Source: https://coincraddle.com/docs/api/index Retrieves a list of all currency pairs that are available for exchange on the platform. This helps in determining valid trading routes. ```HTTP GET https://coincraddle.com/v1/api/pairs?key=3r8wzm4c8uo9ep5tk ``` -------------------------------- ### Payment Rate API Source: https://coincraddle.com/docs/api/index Calculates the amount of funds needed to send to receive a payment, providing the current exchange rate. ```APIDOC ## GET /payment/rate ### Description This request allows you to get the current exchange rate and calculate the amount of funds you need to send to receive a payment. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/payment/rate` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. - **from** (string) - Required - The source currency code (e.g., BTC). - **to** (string) - Required - The target currency code (e.g., USDT). - **amountTo** (float) - Required - The amount you wish to receive. ### Request Example ``` https://coincraddle.com/v1/api/payment/rate?key=3r8wzm4c8uo9ep5tk&from=BTC&to=USDT&amountTo=1000 ``` ### Response #### Success Response (200) - **minamount** (float) - The minimum transaction amount. - **maxamount** (float) - The maximum transaction amount. - **rate** (float) - The amount of funds to be sent. - **result** (boolean) - Indicates if the request was successful. #### Response Example ```json { "minamount": 0.02, "maxamount": 120, "rate": 0.04281856, "result": true } ``` ``` -------------------------------- ### CoinCraddle API Exchange Data Response Source: https://coincraddle.com/docs/api/index This JSON object represents a successful response from the CoinCraddle API, detailing a list of cryptocurrency exchanges. It includes parameters like 'key', 'page', and 'limit' for querying, and provides exchange details such as IDs, statuses, currency pairs, addresses, amounts, and dates. The 'result' field indicates the success of the operation. ```json { "exchanges":[ { "id":"2a8ce4b6-ed5c-4c43-b4bd-ee2a9347fa7a", "status":"time_expired", "from":"ICX", "to":"BAT", "depositAddress":"hxd30cf2e9dd32f987d7858d7e964bf173b7429547", "depositTag":"", "destinationAddress":"0xc406e35bbcec5dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593040aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"479", "expectedAmountTo":"440.26791571754", "amountFrom":null, "date":"19.09.2023 19:20:58", "txId":null, "amountTo":null }, { "id":"3b5sa1n8-ev7c-4c43-b5ud-aa2a9347fa6k", "status":"time_expired", "from":"TRX", "to":"USDTTRC20", "depositAddress":"TCQLDLUJ6iXaVx5ZYPUitgbsJietQmwXbu", "depositTag":"", "destinationAddress":"TLUQNgT28ha3hadx9CEptJeXrG7PeBaTC9", "destinationTag":"", "refundAddress":"TLUQNgT28ha3hadx9CEptJfXre7PeBaTC9", "refundTag":"", "expectedAmountFrom":"900", "expectedAmountTo":"71.689076", "amountFrom":null, "date":"12.09.2023 15:12:40", "txId":null, "amountTo":null }, { "id":"16257e7f-f9fc-4dbb-8ac7-63d0004b3064", "status":"success", "from":"ICX", "to":"BAT", "depositAddress":"hxfb212d7f1d5dba665c306f26d4bbcd83fdd77cf2", "depositTag":"", "destinationAddress":"0xc406e35bacec3dc5c3576f159517bef0edc5ba98", "destinationTag":"", "refundAddress":"hx12b11f61c756609593240aa265e6bfb982b6f780", "refundTag":"", "expectedAmountFrom":"348.884502", "expectedAmountTo":307.0772074462869, "amountFrom":"348.86450200", "date":"13.09.2023 09:13:25", "txId":"0xf7ab1826c2a186ce596abf67a964716f30efa40c8e07c70d92ac297cc4c94b88", "amountTo":"306.43493965" } ], "limit":100, "page":0, "result":true } ``` -------------------------------- ### Address Validation API Source: https://coincraddle.com/docs/api/index Validates the format and existence of a cryptocurrency address for a specified currency. ```APIDOC ## GET /validate-address ### Description This request checks the validity of the address. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/validate-address` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. - **currency** (string) - Required - The currency code (e.g., BTC). - **address** (string) - Required - The cryptocurrency address to validate. ### Request Example ``` https://coincraddle.com/v1/api/validate-address?key=3r8wzm4c8uo9ep5tk¤cy=BTC&address=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` ### Response #### Success Response (200) - **result** (boolean) - Indicates if the address is valid. #### Response Example ```json { "result":true } ``` ``` -------------------------------- ### Exchange Rate API Source: https://coincraddle.com/docs/api/index Retrieves the current exchange rate between two currencies for a given transaction amount. Transaction fees are not included. ```APIDOC ## GET /rate ### Description This request gets the current exchange rate. Transaction fee is not included. ### Method GET ### Endpoint `https://coincraddle.com/v1/api/rate` ### Parameters #### Query Parameters - **key** (string) - Required - Your API key. - **from** (string) - Required - The source currency code (e.g., BTC). - **to** (string) - Required - The target currency code (e.g., USDT). - **amount** (float) - Required - The transaction amount. - **fix** (int) - Optional - Set to 1 for a fixed rate, 0 for a floating rate. Defaults to 0. ### Request Example ``` https://coincraddle.com/v1/api/rate?key=3r8wzm4c8uo9ep5tk&from=BTC&to=USDT&amount=1&fix=0 ``` ### Response #### Success Response (200) - **fix** (boolean) - Indicates if the rate is fixed. - **minamount** (float) - The minimum transaction amount. - **maxamount** (float) - The maximum transaction amount. - **rate** (float) - The current exchange rate. - **withdrawalFee** (string) - Approximate commission for withdrawal (floating parameter). - **result** (boolean) - Indicates if the request was successful. #### Response Example ```json { "fix": false, "minamount": 0.02, "maxamount": 120, "rate": 16776.052484164, "withdrawalFee": "3.96626 USDT", "result": true } ``` ``` -------------------------------- ### Calculate Payment Rate for Transaction Amount Source: https://coincraddle.com/docs/api/index Calculates the amount of funds required to send for a payment, based on the current exchange rate. Does not include transaction fees. ```HTTP GET https://coincraddle.com/v1/api/payment/rate?key=3r8wzm4c8uo9ep5tk&from=BTC&to=USDT&amountTo=1000 ``` -------------------------------- ### Validate Cryptocurrency Address Source: https://coincraddle.com/docs/api/index Checks the validity of a given cryptocurrency address for a specified currency. Requires an API key. ```HTTP GET https://coincraddle.com/v1/api/validate-address?key=3r8wzm4c8uo9ep5tk¤cy=BTC&address=bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.