Get limit orders by taker
GET /ft/orders/:chainId/taker/:address
Examples
curl -X GET \
'https://api.paraswap.io/ft/orders/137/taker/0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf'/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from 'axios';
import {
constructPartialSDK,
constructAxiosFetcher,
constructGetLimitOrders,
} from '..';
const fetcher = constructAxiosFetcher(axios);
const paraSwapLimitOrderSDK = constructPartialSDK(
{
chainId: 1,
fetcher,
},
constructGetLimitOrders
);
async function run() {
const orders = await paraSwapLimitOrderSDK.getLimitOrders({
taker: 'curl -X GET \
'https://api.paraswap.io/ft/orders/137/maker/0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf'curl -X GET \
'https://api.paraswap.io/ft/orders/137/maker/0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf'az',
type: 'LIMIT',
});
console.log('orders', orders);
}
run();GET /ft/p2p/:chainId/taker/:address (for p2p)
Examples
curl -X GET \
'https://api.paraswap.io/ft/p2p/137/taker/0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf'/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from 'axios';
import {
constructPartialSDK,
constructAxiosFetcher,
constructGetLimitOrders,
} from '..';
const fetcher = constructAxiosFetcher(axios);
const paraSwapLimitOrderSDK = constructPartialSDK(
{
chainId: 1,
fetcher,
},
constructGetLimitOrders
);
async function run() {
const p2pOrders = await paraSwapLimitOrderSDK.getLimitOrders({
taker: '0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf',
type: 'P2P',
});
console.log('p2pOrders', p2pOrders);
}
run();Query parameters:
chainId:network id (Ethereum Mainnet = 1).address: will return you the orders in which
taker == address.limit(Optional): max count of orders.offset(Optional): pagination offset.hideSmallBalances(Optional, default: false): boolean if true will hide all orders in which 99.99% of the value has already been swapped.
Response
Understand the response by checking our dedicated page:
Data structure in our centralized systemLast updated