Get limit orders by maker
GET /ft/orders/:chainId/maker/:address
Examples
curl -X GET \
'https://api.paraswap.io/ft/orders/1/maker/0x7BA594DF3161729BF2E68A9d0A11dceB57A2e306'/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from 'axios';
import {
// swap methods
constructPartialSDK,
constructAxiosFetcher,
// limitOrders methods
constructGetLimitOrders,
} from '..';
const fetcher = constructAxiosFetcher(axios);
const paraSwapLimitOrderSDK = constructPartialSDK(
{
chainId: 1,
fetcher,
},
constructGetLimitOrders
);
async function run() {
const orders = await paraSwapLimitOrderSDK.getLimitOrders({
maker: '0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf',
type: 'LIMIT',
});
console.log('orders', orders);
}
run();
GET /ft/p2p/:chainId/maker/:address (for p2p)
Examples
curl -X GET \
'https://api.paraswap.io/ft/p2p/1/maker/0x7BA594DF3161729BF2E68A9d0A11dceB57A2e306'/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from 'axios';
import {
// swap methods
constructPartialSDK,
constructAxiosFetcher,
// limitOrders methods
constructGetLimitOrders,
} from '..';
const fetcher = constructAxiosFetcher(axios);
const paraSwapLimitOrderSDK = constructPartialSDK(
{
chainId: 1,
fetcher,
},
constructGetLimitOrders
);
async function run() {
const p2pOrders = await paraSwapLimitOrderSDK.getLimitOrders({
maker: '0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf',
type: 'P2P',
});
console.log('p2pOrders', p2pOrders);
}
run();Query parameters:
Response
Data structure in our centralized systemLast updated