API Reference
Tokens
GET
https://api-v2.bancor.network/tokens
Returns all tradable tokens in the Bancor Network, along with their metadata, liquidity, volume and pricing info. You can provide an optional filter in order to only receive data for a specific token.
Query Parameters
Pools
GET
https://api-v2.bancor.network/pools
Returns all pools in the Bancor Network, along with their metadata, liquidity, volume and pricing info. You can provide an optional filter in order to only receive data for a specific pool.
Query Parameters
Stats
GET
https://api-v2.bancor.network/stats
Returns global stats of the Bancor Network.
Liquidity Depth History
GET
https://api-v2.bancor.network/history/liquidity-depth
Returns the global liquidity depth history in the network. You can provide an optional filter in order to receive the liquidity depth for a specific token.
Query Parameters
Volume History
GET
https://api-v2.bancor.network/history/volume
Returns the global volume history in the network. You can provide an optional filter in order to receive the volume for a specific token.
Query Parameters
Price History
GET
https://api-v2.bancor.network/history/price
Returns the price history for a given token in the network.
Query Parameters
Trade Transaction Creation
GET
https://api-v2.bancor.network/transactions/swap
Creates a trade transaction, ready to be signed by the user wallet. Note that if approval is required, the API will also return the necessary approval transactions.
Query Parameters
Expected Target Amount
GET
https://api-v2.bancor.network/pricing/target-amount
Returns the expected target amount, given source/target tokens and source amount.
Query Parameters
Expected Source Amount
GET
https://api-v2.bancor.network/pricing/source-amount
Returns the expected source amount, given source/target tokens and target amount.
Query Parameters
Last updated