{"_id":"56326e9fdf556c0d00cd08e4","category":{"_id":"56326e9ddf556c0d00cd08d2","project":"544fc17e698ab40800b4f891","version":"56326e9cdf556c0d00cd08ca","pages":["56326e9fdf556c0d00cd08e0","56326e9fdf556c0d00cd08e1","56326e9fdf556c0d00cd08e2","56326e9fdf556c0d00cd08e3","56326e9fdf556c0d00cd08e4","56326e9fdf556c0d00cd08e5","56326e9fdf556c0d00cd08e6","56326e9fdf556c0d00cd08e7","56326e9fdf556c0d00cd08e8"],"__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-01T08:07:30.539Z","from_sync":false,"order":8,"slug":"wallets","title":"Wallets"},"editedParams2":true,"parentDoc":null,"version":{"_id":"56326e9cdf556c0d00cd08ca","project":"544fc17e698ab40800b4f891","__v":2,"createdAt":"2015-10-29T19:08:12.724Z","releaseDate":"2015-10-29T19:08:12.724Z","categories":["56326e9ddf556c0d00cd08cb","56326e9ddf556c0d00cd08cc","56326e9ddf556c0d00cd08cd","56326e9ddf556c0d00cd08ce","56326e9ddf556c0d00cd08cf","56326e9ddf556c0d00cd08d0","56326e9ddf556c0d00cd08d1","56326e9ddf556c0d00cd08d2","56326e9ddf556c0d00cd08d3","56326e9ddf556c0d00cd08d4","56d942ac337fd11300d6a251"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"collector","version_clean":"2.1.0","version":"2.1"},"__v":0,"project":"544fc17e698ab40800b4f891","editedParams":true,"user":"544fc065698ab40800b4f888","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-05T14:19:49.414Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"import requests\n\nTOKEN = 'YOUR TOKEN'\nurl = 'https://coins.ph/api/v3/crypto-exchanges'\n\nheaders = {\n    'Authorization': 'Bearer {}'.format(TOKEN),\n    'Content-Type': 'application/json;charset=UTF-8',\n    'Accept': 'application/json'\n}\n\nrequests.get(url, headers=headers)\n ","name":"","language":"python"}]},"method":"get","results":{"codes":[{"status":200,"language":"json","code":"{\n   \"crypto-exchanges\":[\n      {\n         \"id\": \"1a3fg3\",\n         \"source_account\": \"j3avb4\",\n         \"target_account\": \"3b4hab\",\n         \"rate\": 10501,\n         \"source_amount\": \"1\",\n         \"target_amount\": 10501,\n         \"status\": \"success\",\n         \"created_at\": \"2014-08-28T12:11:36.938Z\"\n      }\n   ]\n}","name":""}]},"settings":"","auth":"required","params":[{"_id":"5548d2eeafc5ed0d00e145e7","ref":"","in":"path","required":false,"desc":"ID of the `crypto-exchange` record to retrieve. Optional.","default":"","type":"string","name":"id"}],"url":"/api/v3/crypto-exchanges/:id/"},"isReference":false,"order":4,"body":"An exchange transfers funds between the same user's accounts. It uses the current exchange rate to convert the amount being transferred into the `target_account`.\n\n## Properties\n\n* **id** - Unique identifier for the exchange record.\n* **source_account** - The [account](doc:crypto-accounts) where the funds are taken from.\n* **target_account** - The [account](doc:crypto-accounts) where the funds are transferred to.\n* **rate** - The current exchange rate.\n* **source_amount** - The amount transferred from the `source_account`.\n* **target_amount** - The amount transferred to the `target_account`.\n* **status** - Specifies whether the transaction is `pending`, `success`, or `failed`.","excerpt":"Retrieve current crypto-exchanges","slug":"crypto-exchanges","type":"endpoint","title":"crypto-exchanges"}

getcrypto-exchanges

Retrieve current crypto-exchanges

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
string
ID of the `crypto-exchange` record to retrieve. Optional.

Examples


Result Format


Documentation

An exchange transfers funds between the same user's accounts. It uses the current exchange rate to convert the amount being transferred into the `target_account`. ## Properties * **id** - Unique identifier for the exchange record. * **source_account** - The [account](doc:crypto-accounts) where the funds are taken from. * **target_account** - The [account](doc:crypto-accounts) where the funds are transferred to. * **rate** - The current exchange rate. * **source_amount** - The amount transferred from the `source_account`. * **target_amount** - The amount transferred to the `target_account`. * **status** - Specifies whether the transaction is `pending`, `success`, or `failed`.