curl -X GET \ 'https://api.paraswap.io/ft/orders/137/pairs'
network = Network.Polygon api_url = "https://api.paraswap.io/" # get ftApi object instance # fungible api is a wrapper to our limit orders api ftApi = create_fungible_api(network, api_url) pairs = ftApi.get_orderbook_pairs() print(pairs)
chainId:network id (Ethereum Mainnet = 1).
chainId:
Example:
GET https://api.paraswap.io/ft/orders/137/pairs
{ "success": true, "pairs": [ { "makerAsset": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "takerAsset": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063" } ] }
Last updated 2 years ago