{"_id":"56326e9ddf556c0d00cd08d8","__v":0,"parentDoc":null,"project":"544fc17e698ab40800b4f891","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"},"category":{"_id":"56326e9ddf556c0d00cd08cb","version":"56326e9cdf556c0d00cd08ca","pages":["56326e9ddf556c0d00cd08d5","56326e9ddf556c0d00cd08d6","56326e9ddf556c0d00cd08d7","56326e9ddf556c0d00cd08d8","56326e9ddf556c0d00cd08d9"],"project":"544fc17e698ab40800b4f891","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-28T16:17:02.556Z","from_sync":false,"order":0,"slug":"getting-started","title":"Getting Started"},"user":"544fc065698ab40800b4f888","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-05-07T11:24:24.401Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"The current BTC->Fiat rate can be retrieved in https://quote.coins.ph/v1/markets.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\\"meta\\\":\\n {\\n   \\\"total_count\\\":8,\\n   \\\"next_page\\\":null,\\n   \\\"previous_page\\\":null\\n },\\n \\\"markets\\\":[\\n   {\\n     \\\"symbol\\\":\\\"BTC-CLP\\\",\\n     \\\"currency\\\":\\n     \\\"CLP\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"1000000\\\",\\n     \\\"ask\\\":\\\"1000000\\\",\\n     \\\"expires_in_seconds\\\":0\\n   },\\n   {\\\"symbol\\\":\\\"BTC-HKD\\\",\\n    \\\"currency\\\":\\\"HKD\\\",\\n    \\\"product\\\":\\\"BTC\\\",\\n    \\\"bid\\\":\\\"1839.63\\\",\\n    \\\"ask\\\":\\\"1876.42\\\",\\n    \\\"expires_in_seconds\\\":18\\n   },\\n   {\\n     \\\"symbol\\\":\\\"BTC-IDR\\\",\\n     \\\"currency\\\":\\\"IDR\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"3033900\\\",\\n     \\\"ask\\\":\\\"3092742\\\",\\n     \\\"expires_in_seconds\\\":18\\n   },\\n   {\\n     \\\"symbol\\\":\\\"BTC-MYR\\\",\\n     \\\"currency\\\":\\\"MYR\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"855.85\\\",\\n     \\\"ask\\\":\\\"872.96\\\",\\n     \\\"expires_in_seconds\\\":18\\n   },{\\n     \\\"symbol\\\":\\\"BTC-PHP\\\"\\n     ,\\\"currency\\\":\\\"PHP\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"10604\\\",\\n     \\\"ask\\\":\\\"10731\\\",\\n     \\\"expires_in_seconds\\\":18\\n   },\\n   {\\n     \\\"symbol\\\":\\\"BTC-THB\\\",\\n     \\\"currency\\\":\\\"THB\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"7630.9\\\",\\n     \\\"ask\\\":\\\"7837.79\\\",\\n     \\\"expires_in_seconds\\\":18\\n   },{\\n     \\\"symbol\\\":\\\"BTC-TWD\\\",\\n     \\\"currency\\\":\\\"TWD\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"7294.66\\\",\\n     \\\"ask\\\":\\\"7367.6\\\",\\n     \\\"expires_in_seconds\\\":18\\n   },{\\n     \\\"symbol\\\":\\\"BTC-VND\\\",\\n     \\\"currency\\\":\\\"VND\\\",\\n     \\\"product\\\":\\\"BTC\\\",\\n     \\\"bid\\\":\\\"5145595\\\",\\n     \\\"ask\\\":\\\"5197051\\\",\\n     \\\"expires_in_seconds\\\":18\\n   }\\n ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nA particular market rate can be retrieved by specifying its symbol, for example https://quote.coins.ph/v1/markets/BTC-PHP\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"market\\\":{\\n    \\\"symbol\\\":\\\"BTC-PHP\\\",\\n    \\\"currency\\\":\\\"PHP\\\",\\n    \\\"product\\\":\\\"BTC\\\",\\n    \\\"bid\\\":\\\"10596\\\",\\n    \\\"ask\\\":\\\"10723\\\",\\n    \\\"expires_in_seconds\\\":9\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n## Properties\n\n* **symbol** - Market symbol, which is a unique identifier for the exchange rate.\n* **currency** - The currency to be exchanged to produce one unit of `product`.\n* **product** - The currency produced when the required amount of `currency` is exchanged.\n* **bid** - The price per unit when `product` is being exchanged for `currency`.\n* **ask** - The price per unit when `currency` is being exchanged for `product`.\n* **expires_in_seconds** - The amount of seconds before the quote expires.","excerpt":"","slug":"market-rates","type":"basic","title":"Market Rates"}
The current BTC->Fiat rate can be retrieved in https://quote.coins.ph/v1/markets. [block:code] { "codes": [ { "code": "{\"meta\":\n {\n \"total_count\":8,\n \"next_page\":null,\n \"previous_page\":null\n },\n \"markets\":[\n {\n \"symbol\":\"BTC-CLP\",\n \"currency\":\n \"CLP\",\n \"product\":\"BTC\",\n \"bid\":\"1000000\",\n \"ask\":\"1000000\",\n \"expires_in_seconds\":0\n },\n {\"symbol\":\"BTC-HKD\",\n \"currency\":\"HKD\",\n \"product\":\"BTC\",\n \"bid\":\"1839.63\",\n \"ask\":\"1876.42\",\n \"expires_in_seconds\":18\n },\n {\n \"symbol\":\"BTC-IDR\",\n \"currency\":\"IDR\",\n \"product\":\"BTC\",\n \"bid\":\"3033900\",\n \"ask\":\"3092742\",\n \"expires_in_seconds\":18\n },\n {\n \"symbol\":\"BTC-MYR\",\n \"currency\":\"MYR\",\n \"product\":\"BTC\",\n \"bid\":\"855.85\",\n \"ask\":\"872.96\",\n \"expires_in_seconds\":18\n },{\n \"symbol\":\"BTC-PHP\"\n ,\"currency\":\"PHP\",\n \"product\":\"BTC\",\n \"bid\":\"10604\",\n \"ask\":\"10731\",\n \"expires_in_seconds\":18\n },\n {\n \"symbol\":\"BTC-THB\",\n \"currency\":\"THB\",\n \"product\":\"BTC\",\n \"bid\":\"7630.9\",\n \"ask\":\"7837.79\",\n \"expires_in_seconds\":18\n },{\n \"symbol\":\"BTC-TWD\",\n \"currency\":\"TWD\",\n \"product\":\"BTC\",\n \"bid\":\"7294.66\",\n \"ask\":\"7367.6\",\n \"expires_in_seconds\":18\n },{\n \"symbol\":\"BTC-VND\",\n \"currency\":\"VND\",\n \"product\":\"BTC\",\n \"bid\":\"5145595\",\n \"ask\":\"5197051\",\n \"expires_in_seconds\":18\n }\n ]\n}", "language": "json" } ] } [/block] A particular market rate can be retrieved by specifying its symbol, for example https://quote.coins.ph/v1/markets/BTC-PHP [block:code] { "codes": [ { "code": "{\n \"market\":{\n \"symbol\":\"BTC-PHP\",\n \"currency\":\"PHP\",\n \"product\":\"BTC\",\n \"bid\":\"10596\",\n \"ask\":\"10723\",\n \"expires_in_seconds\":9\n }\n}", "language": "json" } ] } [/block] ## Properties * **symbol** - Market symbol, which is a unique identifier for the exchange rate. * **currency** - The currency to be exchanged to produce one unit of `product`. * **product** - The currency produced when the required amount of `currency` is exchanged. * **bid** - The price per unit when `product` is being exchanged for `currency`. * **ask** - The price per unit when `currency` is being exchanged for `product`. * **expires_in_seconds** - The amount of seconds before the quote expires.