const options = {method: 'GET'};
fetch('https://swap.ggp.gg/api/{blockchain}/orders/byMaker/history/{maker}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"createdAt": 1,
"filledTxHashes": [
"<string>"
],
"maker": "<string>",
"makerSrcOrToken": "<string>",
"makerToken": "<string>",
"makerTraits": "<string>",
"makingAmount": "<string>",
"orderHash": "<string>",
"orderType": "limit",
"parsedMakerTraits": {
"allowMultipleFills": true,
"allowPartialFills": true,
"allowedSenderSuffix": "<string>",
"expiration": 1,
"hasExtension": true,
"needCheckEpochManager": true,
"needPostInteractionCall": true,
"needPreInteractionCall": true,
"nonceOrEpoch": 1,
"series": 1,
"unwrapWeth": true,
"usePermit2": true
},
"status": "<string>",
"takerSrcOrToken": "<string>",
"takerToken": "<string>",
"takingAmount": "<string>",
"cancelledAt": 1,
"extension": "<string>",
"filledAt": 1,
"meta": {
"makerToken": {
"address": "<string>",
"blockchain": "ethereum",
"buyFeeBps": 123,
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"sellFeeBps": 123,
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
},
"takerToken": {
"address": "<string>",
"blockchain": "ethereum",
"buyFeeBps": 123,
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"sellFeeBps": 123,
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
}
},
"recipient": "<string>"
}
],
"nextCursor": "<string>"
}GET orders by maker
const options = {method: 'GET'};
fetch('https://swap.ggp.gg/api/{blockchain}/orders/byMaker/history/{maker}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"createdAt": 1,
"filledTxHashes": [
"<string>"
],
"maker": "<string>",
"makerSrcOrToken": "<string>",
"makerToken": "<string>",
"makerTraits": "<string>",
"makingAmount": "<string>",
"orderHash": "<string>",
"orderType": "limit",
"parsedMakerTraits": {
"allowMultipleFills": true,
"allowPartialFills": true,
"allowedSenderSuffix": "<string>",
"expiration": 1,
"hasExtension": true,
"needCheckEpochManager": true,
"needPostInteractionCall": true,
"needPreInteractionCall": true,
"nonceOrEpoch": 1,
"series": 1,
"unwrapWeth": true,
"usePermit2": true
},
"status": "<string>",
"takerSrcOrToken": "<string>",
"takerToken": "<string>",
"takingAmount": "<string>",
"cancelledAt": 1,
"extension": "<string>",
"filledAt": 1,
"meta": {
"makerToken": {
"address": "<string>",
"blockchain": "ethereum",
"buyFeeBps": 123,
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"sellFeeBps": 123,
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
},
"takerToken": {
"address": "<string>",
"blockchain": "ethereum",
"buyFeeBps": 123,
"createdAt": "2023-12-25",
"decimals": 123,
"fdv": "<string>",
"price": "<string>",
"sellFeeBps": 123,
"updatedAt": "2023-12-25",
"name": "<string>",
"symbol": "<string>",
"uri": "<string>"
}
},
"recipient": "<string>"
}
],
"nextCursor": "<string>"
}ethereum, bsc, arbitrum x >= 0x >= 0