curl -X GET \
'https://api.paraswap.io/ft/orders/137/orderbook/?makerAsset=0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270&takerAsset=0x42d61d766b85431666b39b89c43011f24451bff6'
MAKER_ASSET = "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
TAKER_ASSET = "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063"
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)
orderbook = ftApi.get_orderbook(MAKER_ASSET, TAKER_ASSET)
print(orderbook)
Query parameters:
makerAsset: address of an ERC20 token
takerAsset: address of an ERC20 token
Response
This is returning you all the orders which respect makerAsset == makerAsset and takerAsset == takerAsset.