[bisq-network/bisq-markets] adds an api to retrieve the list of currencies available for trading on bisq (#10)

peertrade notifications at github.com
Sat Jul 7 18:40:31 UTC 2018


This seemed to be a missing API.  I followed the format of the other APIs.   I hope it is useful...

Here is the documentation that is auto generated on the /api page.

**/api/currencies**
Provides list of available currencies for a given base currency.
**Sample Request**
    https://markets.bisq.network/api/currencies
**Sample Response**
```
{
    "AED": {
        "code": "AED",
        "name": "United Arab Emirates Dirham",
        "precision": 8,
        "type": "fiat"
    },
    "AIB": {
        "code": "AIB",
        "name": "Advanced Internet Blocks",
        "precision": 8,
        "type": "crypto"
    },
    ...
}
```
**Parameters**

|param|desc|required|values|default|
|--------|------|----------|-------|---------|
|basecurrency|base currency identifier|No|BTC|
|type|type of currencies to include in results|No|crypto \| fiat \| all| 	all|
|format|format of return data|No|	json \| jsonpretty|jsonpretty|

**Notes**
* In practice, the same currencies are available for every basecurrency so this API can be called just once, omitting the basecurrency parameter.


You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq-markets/pull/10

-- Commit Summary --

  * add an api to retrieve the list of currencies available for trading on bisq

-- File Changes --

    A api/currencies/apidoc.php (50)
    A api/currencies/index.php (34)

-- Patch Links --

https://github.com/bisq-network/bisq-markets/pull/10.patch
https://github.com/bisq-network/bisq-markets/pull/10.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-markets/pull/10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180707/acddde6e/attachment.html>


More information about the bisq-github mailing list