{"id":21697387,"url":"https://github.com/web3space/kauri-sdk","last_synced_at":"2025-03-20T15:13:38.870Z","repository":{"id":97406291,"uuid":"186063341","full_name":"web3space/kauri-sdk","owner":"web3space","description":"Kauri SDK for Coinpay API","archived":false,"fork":false,"pushed_at":"2019-05-11T15:49:28.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T14:13:17.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web3space.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-10T22:48:14.000Z","updated_at":"2019-05-11T15:49:30.000Z","dependencies_parsed_at":"2023-03-04T05:45:23.344Z","dependency_job_id":null,"html_url":"https://github.com/web3space/kauri-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3space%2Fkauri-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3space%2Fkauri-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3space%2Fkauri-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web3space%2Fkauri-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web3space","download_url":"https://codeload.github.com/web3space/kauri-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244637103,"owners_count":20485446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T19:25:22.170Z","updated_at":"2025-03-20T15:13:38.844Z","avatar_url":"https://github.com/web3space.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KAURI SDK\n\n![Kauri Finance](https://res.cloudinary.com/nixar-work/image/upload/v1557528990/Screen_Shot_2019-05-11_at_01.56.00.png)\n\nThe NodeJS module for Kauri/Coinpay API\n\n## Install\n\n```bash\nnpm i kauri-sdk\n```\n\n## Import \n\n```Javascript \nconst kauriSDK = require('kauri-sdk');\n\nconst token = '....'; // get token from api.obtainToken\n\nconst api = kauriSDK(token);\n\n```\n\n## Available Methods\n\n * [api.exchangeRate(params, cb)](#exchangeRate)\n * [api.createUser(params, cb)](#createUser)\n * [api.obtainToken(params, cb)](#obtainToken)\n * [api.refreshToken(params, cb)](#refreshToken)\n * [api.getBalance(params, cb)](#getBalance)\n * [api.accountInfo(params, cb)](#accountInfo)\n * [api.withdrawal(params, cb)](#withdrawal)\n * [api.cancelWithdrawal(params, cb)](#cancelWithdrawal)\n * [api.repeatWithdrawal(params, cb)](#repeatWithdrawal)\n * [api.exchange(params, cb)](#exchange)\n * [api.exchangeCalculate(params, cb)](#exchangeCalculate)\n * [api.orderHistory(params, cb)](#orderHistory)\n * [api.orderDetails(params, cb)](#orderDetails)\n\n## Method Descriptions\n\n# exchangeRate\n#### Получение текущих цен\n\n\n\n```Javascript\n\nconst params = {\n\n}\n\napi.exchangeRate(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: no\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  }\" 'https://coinpay.org.ua/api/v1/exchange_rate'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"rates\": [\n        {\n            \"pair\": \"USDT_EUR\",\n            \"price\": 1.12035185\n        },\n        {\n            \"pair\": \"BTC_USD\",\n            \"price\": 5039.54\n        }\n    ],\n    \"status\": \"success\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# createUser\n#### Создание аккаунта\n\n\n\n```Javascript\n\nconst params = {\n    password: 'theStrongPassW00rd',\n    email: 'a****@gmail.com',\n    username: 'exadmin'\n}\n\napi.createUser(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: no\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  password: 'theStrongPassW00rd', email: 'a****@gmail.com', username: 'exadmin' }\" 'https://coinpay.org.ua/api/v1/user/create'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"username\": \"1@gmail.com\",\n    \"email\": \"1@gmail.com\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# obtainToken\n#### Авторизация через АПИ\n\nИспользуйте для создания API `const api = KauriSDK(token)`\n\n```Javascript\n\nconst params = {\n    password: 'theStrongPassW00rd',\n    email: 'a****@gmail.com'\n}\n\napi.obtainToken(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: no\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  password: 'theStrongPassW00rd', email: 'a****@gmail.com' }\" 'https://coinpay.org.ua/api/v1/user/obtain_token'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"username\": \"Свят\",\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTUxMzg5NDIsInVzZXJuYW1lIjoiXHUwNDIxXHUwNDMyXHUwNDRmXHUwNDQyIiwib3JpZ19pYXQiOjE1NTUxMzgzNDIsInVzZXJfaWQiOjUsIm90cF9kZXZpY2VfaWQiOm51bGx9.cEqgi0bchlbKkObZtkFryPdmcmzWoTZ_CQlXA6k3gSM\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# refreshToken\n#### Обновление токена\n\nИспользуйте для создания API `const api = KauriSDK(token)`\n\n```Javascript\n\nconst params = {\n    token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTUxMzg5NDIsInVzZXJuYW1lIjoiXHUwNDIxXHUwNDMyXHUwNDRmXHUwNDQyIiwib3JpZ19pYXQiOjE1NTUxMzgzNDIsInVzZXJfaWQiOjUsIm90cF9kZXZpY2VfaWQiOm51bGx9.cEqgi0bchlbKkObZtkFryPdmcmzWoTZ_CQlXA6k3gSM'\n}\n\napi.refreshToken(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: no\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTUxMzg5NDIsInVzZXJuYW1lIjoiXHUwNDIxXHUwNDMyXHUwNDRmXHUwNDQyIiwib3JpZ19pYXQiOjE1NTUxMzgzNDIsInVzZXJfaWQiOjUsIm90cF9kZXZpY2VfaWQiOm51bGx9.cEqgi0bchlbKkObZtkFryPdmcmzWoTZ_CQlXA6k3gSM' }\" 'https://coinpay.org.ua/api/v1/user/refresh_token'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTUxMzkxMjEsInVzZXJuYW1lIjoiXHUwNDIxXHUwNDMyXHUwNDRmXHUwNDQyIiwib3JpZ19pYXQiOjE1NTUxMzgzNDIsInVzZXJfaWQiOjUsIm90cF9kZXZpY2VfaWQiOm51bGx9.AkqWizMnApa9MNfs1qdmsJuDJrUiu2B7c2-gQ0Q0a5M\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# getBalance\n#### Получение баланса и адресов для пополнения\n\n\n\n```Javascript\n\nconst params = {\n\n}\n\napi.getBalance(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  }\" 'https://coinpay.org.ua/api/v1/user/balance'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"balance\": {\n        \"ETH\": {\n            \"ETH\": {\n                \"total\": 0,\n                \"reserved\": 0\n            },\n            \"UAH\": {\n                \"total\": 0,\n                \"reserved\": 0\n            },\n            \"EUR\": {\n                \"total\": 0,\n                \"reserved\": 0\n            },\n            \"USD\": {\n                \"total\": 0,\n                \"reserved\": 0\n            },\n            \"currency\": \"ETH\",\n            \"USDT\": {\n                \"total\": 0,\n                \"reserved\": 0\n            },\n            \"BTC\": {\n                \"total\": 0,\n                \"reserved\": 0\n            }\n        },\n        \"wallets\": {\n            \"ETH\": {\n                \"qr_file_data\": \"\u003cbase64_qr_code\u003e\",\n                \"qr\": \"https://chart.googleapis.com/chart?chs=150x150\u0026cht=qr\u0026chl=0xb7dab9bcfe1ccddf34e35e1f8ffdb23d08a97284\u0026choe=UTF-8\",\n                \"address\": \"0xb7dab9bcfe1ccddf34e35e1f8ffdb23d08a97284\"\n            },\n            \"USDT\": {\n                \"qr_file_data\": \"\u003cbase64_qr_code\u003e\",\n                \"qr\": \"https://chart.googleapis.com/chart?chs=150x150\u0026cht=qr\u0026chl=1BJs6ffzjKEMsKzdQEk2SnLUcEzfNn84kx\u0026choe=UTF-8\",\n                \"address\": \"1BJs6ffzjKEMsKzdQEk2SnLUcEzfNn84kx\"\n            },\n            \"BTC\": {\n                \"qr_file_data\": \"\u003cbase64_qr_code\u003e\",\n                \"qr\": \"https://chart.googleapis.com/chart?chs=150x150\u0026cht=qr\u0026chl=1BJs6ffzjKEMsKzdQEk2SnLUcEzfNn84kx\u0026choe=UTF-8\",\n                \"address\": \"1BJs6ffzjKEMsKzdQEk2SnLUcEzfNn84kx\"\n            }\n        }\n    }\n}\n```\n\n------\n------\n------\n\n\n\n\n# accountInfo\n#### Получение лимитов, фии и и.т.д. По операциям\n\nЭтот АПИ колл возвращает информацию по лимитам на обмен для каждой пары, возвращает лимиты на ввод, вывод, какие фии будут применены для ввода или вывода. У каждой операции ввода, вывода есть подтип операции, который может быть доступен человеку или нет.\n\n```Javascript\n\nconst params = {\n\n}\n\napi.accountInfo(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  }\" 'https://coinpay.org.ua/api/v1/user/account_info'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"name\": \"Свят\",\n    \"email\": \"svyatoslavkravchenko@gmail.com\",\n    \"account_type\": \"VERIFIED\",\n    \"is_email_verified\": true,\n    \"is_2fa_enabled\": false,\n    \"exchange_order_limits\": {\n        \"BTC_UAH\": {\n            \"currency_to_spend\": \"UAH\",\n            \"min_amount\": 100,\n            \"max_amount\": 250000\n        },\n        \"exchange_order_processing_rules\": {\n            \"BTC_UAH\": {\n                \"is_market_exchange_enabled\": true,\n                \"is_cancel_enabled_for_limit_exchange\": true,\n                \"is_limit_exchange_enabled\": true,\n                \"is_repeat_enabled_for_limit_exchange\": true\n            },\n            \"deposit_order_processing_rules\": {\n                \"UAH\": {\n                    \"CASHBOX\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true\n                    },\n                    \"COINPAY_CODE\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true\n                    },\n                    \"BANK_COLLECTION\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true\n                    },\n                    \"GATEWAY\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true\n                    },\n                    \"SALE_POINT\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true\n                    }\n                },\n                \"BTC\": {\n                    \"GATEWAY\": {\n                        \"is_deposit_enabled\": true,\n                        \"is_cancel_enabled\": false,\n                        \"is_repeat_enabled\": false\n                    }\n                }\n            },\n            \"deposit_order_fees\": {\n                \"UAH\": {\n                    \"CASHBOX\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 1\n                    },\n                    \"COINPAY_CODE\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 0\n                    },\n                    \"BANK_COLLECTION\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 1\n                    },\n                    \"GATEWAY\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 3\n                    },\n                    \"SALE_POINT\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 0\n                    }\n                },\n                \"BTC\": {\n                    \"GATEWAY\": {\n                        \"static_fee\": null,\n                        \"percent_fee\": 0\n                    }\n                }\n            },\n            \"withdrawal_order_fees\": {\n                \"ETH\": {\n                    \"GATEWAY\": {\n                        \"static_fee\": 0.01,\n                        \"percent_fee\": null\n                    },\n                    \"UAH\": {\n                        \"CASHBOX\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"BANK_COLLECTION\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"GATEWAY\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 0\n                        },\n                        \"COINPAY_CODE\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 0\n                        }\n                    },\n                    \"EUR\": {\n                        \"CASHBOX\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"BANK_COLLECTION\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"GATEWAY\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 3\n                        },\n                        \"COINPAY_CODE\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 0\n                        }\n                    },\n                    \"USD\": {\n                        \"CASHBOX\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"BANK_COLLECTION\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 1\n                        },\n                        \"GATEWAY\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 3\n                        },\n                        \"COINPAY_CODE\": {\n                            \"static_fee\": null,\n                            \"percent_fee\": 0\n                        }\n                    },\n                    \"USDT\": {\n                        \"GATEWAY\": {\n                            \"static_fee\": 5,\n                            \"percent_fee\": null\n                        },\n                        \"BTC\": {\n                            \"GATEWAY\": {\n                                \"static_fee\": 0.001,\n                                \"percent_fee\": null\n                            }\n                        }\n                    }\n                }\n            },\n            \"withdrawal_order_processing_rules\": {\n                \"UAH\": {\n                    \"CASHBOX\": {\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true,\n                        \"is_withdrawal_enabled\": true\n                    },\n                    \"BANK_COLLECTION\": {\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true,\n                        \"is_withdrawal_enabled\": true\n                    },\n                    \"GATEWAY\": {\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true,\n                        \"is_withdrawal_enabled\": true\n                    },\n                    \"COINPAY_CODE\": {\n                        \"is_cancel_enabled\": true,\n                        \"is_repeat_enabled\": true,\n                        \"is_withdrawal_enabled\": true\n                    },\n                    \"BTC\": {\n                        \"GATEWAY\": {\n                            \"is_cancel_enabled\": true,\n                            \"is_repeat_enabled\": true,\n                            \"is_withdrawal_enabled\": true\n                        }\n                    }\n                },\n                \"withdrawal_order_limits\": {\n                    \"UAH\": {\n                        \"CASHBOX\": {\n                            \"min_amount\": 100,\n                            \"max_amount\": 14500\n                        },\n                        \"BANK_COLLECTION\": {\n                            \"min_amount\": 100,\n                            \"max_amount\": 14500\n                        },\n                        \"GATEWAY\": {\n                            \"min_amount\": 10,\n                            \"max_amount\": 10000\n                        },\n                        \"COINPAY_CODE\": {\n                            \"min_amount\": 10,\n                            \"max_amount\": 14000\n                        }\n                    },\n                    \"BTC\": {\n                        \"GATEWAY\": {\n                            \"min_amount\": 0.002,\n                            \"max_amount\": 10\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n```\n\n------\n------\n------\n\n\n\n\n# withdrawal\n#### Создание заявки на вывод через шлюз(блокчейн или на счёт/карту)\n\n\n\n```Javascript\n\nconst params = {\n    withdrawal_type: 'GATEWAY',\n    wallet_to: '\u003cdestination_wallet\u003e',\n    comment: 'Withdraw Funds',\n    amount: '1',\n    currency: 'UAH'\n}\n\napi.withdrawal(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  withdrawal_type: 'GATEWAY', wallet_to: '\u003cdestination_wallet\u003e', comment: 'Withdraw Funds', amount: '1', currency: 'UAH' }\" 'https://coinpay.org.ua/api/v1/withdrawal'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"order_id\": \"840e166e-86ad-47cf-8cbc-7c1840b20103\",\n    \"status\": \"success\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# cancelWithdrawal\n#### Отмена заявки на вывод\n\nЕсть возможность отмены заявки на вывод если она активна, и если в данный момент не обрабатывается.\n\n```Javascript\n\nconst params = {\n    order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010'\n}\n\napi.cancelWithdrawal(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010' }\" 'https://coinpay.org.ua/api/v1/withdrawal/cancel'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n\n```\n\n------\n------\n------\n\n\n\n\n# repeatWithdrawal\n#### Повторение заявки на вывод\n\nЕсть возможность повтора заявки на вывод если она завершена\n\n```Javascript\n\nconst params = {\n    order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010'\n}\n\napi.repeatWithdrawal(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010' }\" 'https://coinpay.org.ua/api/v1/withdrawal/repeat'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n\n```\n\n------\n------\n------\n\n\n\n\n# exchange\n#### Создание заявки на обмен по рынку\n\n\n\n```Javascript\n\nconst params = {\n    currency_to_get_amount: '100',\n    currency_to_spend: 'BTC',\n    currency_to_get: 'UAH'\n}\n\napi.exchange(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X POST --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  currency_to_get_amount: '100', currency_to_spend: 'BTC', currency_to_get: 'UAH' }\" 'https://coinpay.org.ua/api/v1/exchange'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"order_id\": \"840e166e-86ad-47cf-8cbc-7c1840b20103\",\n    \"status\": \"success\"\n}\n```\n\n------\n------\n------\n\n\n\n\n# exchangeCalculate\n#### Рассчитать коммиссию перед обменом\n\n\n\n```Javascript\n\nconst params = {\n    currency_to_get_amount: '100',\n    currency_to_spend: 'BTC',\n    currency_to_get: 'UAH'\n}\n\napi.exchangeCalculate(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  currency_to_get_amount: '100', currency_to_spend: 'BTC', currency_to_get: 'UAH' }\" 'https://coinpay.org.ua/api/v1/exchange/calculate'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n\n```\n\n------\n------\n------\n\n\n\n\n# orderHistory\n#### Получении истории по заявкам\n\nУ этого функционала есть пагинация, фильтр по типу заявок, и подтипу. Пример ответа по истории, где есть одна заявка на вывод гривны.На каждой странице выводиться по 10 заявок\n\n```Javascript\n\nconst params = {\n\n}\n\napi.orderHistory(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  }\" 'https://coinpay.org.ua/api/v1/orders/history'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"status\": \"success\",\n    \"pages_count\": 1,\n    \"orders\": [\n        {\n            \"external_id\": \"840e166e-86ad-47cf-8cbc-7c1840b20103\",\n            \"amount\": 100.5,\n            \"status\": \"ERROR\",\n            \"currency\": \"UAH\",\n            \"address\": \"2345\",\n            \"order_sub_type\": \"GATEWAY\",\n            \"fee\": 0.5,\n            \"dt\": \"2019-04-13T11:09:01.366566\",\n            \"order_type\": \"WITHDRAWAL\",\n            \"details\": {\n                \"comment\": null\n            }\n        }\n    ]\n}\n```\n\n------\n------\n------\n\n\n\n\n# orderDetails\n#### Получение деталей по заявкам\n\n\n\n```Javascript\n\nconst params = {\n    order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010'\n}\n\napi.orderDetails(params, function(err, data) {\n    \n    if (err) {\n        console.log(err);\n    }\n    \n    console.log(data);\n});\n\n```\n\nNeed Token: yes\n\n#### For other platforms\n\nPlease follow RESTful standard by exapmle:\n\n```bash\n\ncurl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer {token}' --d \"{  order_id: '840e166e-86ad-47cf-8cbc-7c1840b2010' }\" 'https://coinpay.org.ua/api/v1/orders/details'\n\n```\n\n#### Return Example\n\nHTTP Status: 200\n\n```JSON\n{\n    \"order_details\": {},\n    \"status\": \"success\",\n    \"order_id\": \"order_external_id\"\n}\n```\n\n------\n------\n------\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3space%2Fkauri-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb3space%2Fkauri-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb3space%2Fkauri-sdk/lists"}