From bdc8d8e2b68ab8cb9982813954e25c95afbd3c7c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 24 Aug 2017 00:14:29 -0400 Subject: [PATCH] Update README.md --- README.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b1ca515..c3cbc80 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,74 @@ This free web service exists to provide information on "coins". Supports all crypto–currencies. -## Example URIs: +### Example API Endpoints -* [List of All Known Coins](http://coinbin.org/coins) `/coins` -* [BTC Current Value](http://coinbin.org/btc) `/btc` -* [BTC Daily Historical Value](http://coinbin.org/btc/history) `/btc/history` -* [Current BTC / ETH Exchange Rate](http://coinbin.org/btc/to/eth) `/btc/to/eth` -* [Current 20.01 BTC Value](http://coinbin.org/btc/20.01) `/btc/20.01` -* [Current 42 ETH Value in BTC](http://coinbin.org/eth/42/to/btc) `/eth/42/to/btc` +**$ curl [https://coinbin.org/lbc](https://coinbin.org/lbc)** +{ + "coin": { + "name": "LBRY Credits", + "rank": "100", + "ticker": "lbc", + "value": 0.429737, + "value.currency": "USD" + } +} + + + +**$ curl [https://coinbin.org/lbc/42.01](https://coinbin.org/lbc/42.01)** + +{ + "coin": { + "exchange_rate": 0.429737, + "value": 18.053251369999998, + "value.currency": "USD" + } +} + + + +**$ curl [https://coinbin.org/lbc/to/sc](https://coinbin.org/lbc/to/sc)** + +{ + "coin": { + "exchange_rate": 61.98696034733942 + } +} + + + +**$ curl [https://coinbin.org/lbc/42.01/to/sc](https://coinbin.org/lbc/42.01/to/sc)** + +{ + "coin": { + "exchange_rate": 61.98696034733942, + "value": 2604.072204191729, + "value.coin": "sc" + } +} + + +**$ curl [https://coinbin.org/lbc/history](https://coinbin.org/lbc/history)** + +{ + "history": [ + { + "timestamp": "2017-08-24T04:00:55.932092Z", + "value": 0.3404, + "value.currency": "USD", + "when": "today" + }, ... + +... { + "timestamp": "2016-07-12T04:01:09.167162Z", + "value": 0.239634, + "value.currency": "USD", + "when": "Jul 12 2016" + } + ] +} ## Like this project? Consider [tipping us](http://coinbin.org/thanks)! We has many wallets.