Bancor provides public API methods which take HTTP GET requests and return JSON.
Please note that making more than 6 calls per second to the public API, or repeatedly and needlessly fetching excessive amounts of data, can result in your IP being banned.
What is the “Pairs” API?
The “Pairs” API returns token pairs in the Bancor network:
Since Bancor allow converting any token to any token, the API will only focus on major pairs that are known and familiar outside the Bancor network.
The token pairs are structured in the following way:
- BNT/ETH
- Any other token on the Bancor network/BNT
Basic URL format:
https://api.bancor.network/0.1/currencies/convertiblePairs
Sample output:
{"data":{"BNT":"ETH","GNOBNT":"BNT","ENJBNT":"BNT","INDBNT":"BNT","BMCBNT":"BNT","KINBNT":"BNT","WISHBNT":"BNT","OMGBNT":"BNT","TAASBNT":"BNT","STORMBNT":"BNT","AIXBNT":"BNT","GNO":"BNT","BMC":"BNT","OMG":"BNT","AIX":"BNT","ENJ":"BNT","WISH":"BNT","IND":"BNT","KIN":"BNT","TAAS":"BNT","STORM":"BNT"}}
Keep in mind:
Bancor API is currently in alpha and is likely to break or be slow to respond.
We offer several APIs for our partners, for more information please visit our API Documentation