Get orders by maker address
Supported on: Solana
Parameters
chain
* number path address
* string pathMaker's address
page
number queryPagination step, default: 1 (page = offset / limit)
limit
number queryNumber of active orders to receive (default: 100, max: 500)
timestampFrom
number querytimestampFrom in milliseconds for interval [timestampFrom, timestampTo)
timestampTo
number querytimestampTo in milliseconds for interval [timestampFrom, timestampTo)
srcMint
string queryFind history by the given source token mint
dstMint
string queryFind history by the given destination token mint
withMint
string queryFind history items by source or destination token mint
Request Body
This request doesn’t have any request body.
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const axios = require('axios');
async function httpCall() {
const url =
'https://api.1inch.com/fusion/orders/v1.0/{chain}/order/maker/6uJb1VeHBzupesBi6xM9Sh98JhhfmM1nvMTYHL8Pd26b';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {
page: 1,
limit: 100,
timestampFrom: 1794257273172,
timestampTo: 1794257273172,
srcMint: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
dstMint: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
withMint: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU',
},
paramsSerializer: {
indexes: null,
},
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
meta
*Meta object totalItems
* number itemsPerPage
* number totalPages
* number currentPage
* number items
* array items
OrderFillsByMakerOutput object orderHash
* string Order hash.
maker
* string Address of the account creating the order (maker).
status
* number (Enum)Order status.
0
200
301
order
* any Detailed structure of the Solana Fusion Order.
allOf[0]
FusionOrderDto object id
* number Unique id of the order.
srcAmount
* string Amount of the makerAsset being offered by the maker.
minDstAmount
* string Min amount of the dstMint being received.
estimatedDstAmount
* string Market amount of the dstMint being offered by the maker.
expirationTime
* number expiration time by which the order must be filled in seconds.
receiver
* string Address of the account receiving the assets (receiver), if different from maker.
srcAssetIsNative
* boolean if native address is used as source asset
dstAssetIsNative
* boolean if native address is used as destination asset
fee
* any Structure of Fee data.
allOf[0]
FeeDto object protocolFee
* number Fee portion from amount scaled by 1e5. E.g. 1000 -> 1%
integratorFee
* number Fee portion from amount scaled by 1e5. E.g. 1000 -> 1%
surplusPercentage
* number Surplus percentage
protocolDstAta
* string Destination ATA for protocol fee
integratorDstAta
* string Destination ATA for integrator fee
dutchAuctionData
* any Structure of dutch auctioln data.
allOf[0]
DutchAuctionDataDto object startTime
* number Auction start time in Unix timestamp in seconds
duration
* number Auction duration in seconds
initialRateBump
* number Initial rate bump percentage
pointsAndTimeDeltas
* array Auction rate adjustments over time
items
PointsAndDelta object rateBump
* number Rate bump percentage, 10_000_000 means 100%
timeDelta
* number Time delta in seconds
srcMint
* string Source token mint address
dstMint
* string Destination token mint address
cancellationAuctionDuration
* number Cancellation auction duration in seconds.
approximateTakingAmount
* string Approximate amount of the taker asset being requested.
cancelTx
* object Cancel transaction signature (null if not canceled).
fills
* array items
FillOutput object txSignature
* string Transaction hash
filledMakerAmount
* string Amount of the makerAsset filled.
filledAuctionTakerAmount
* string Amount of the takerAsset filled.
createdAt
* number Creation timestamp of the order (Unix timestamp).
expirationTime
* number When order will be expired (Unix timestamp).
cancelable
* boolean Can be canceled
JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"meta": {
"totalItems": 0,
"itemsPerPage": 0,
"totalPages": 0,
"currentPage": 0
},
"items": [
{
"orderHash": "GxXW4Bhtn1xuFRgzAUNyMnYyBJgzvBALNPontUdmpENm",
"maker": "6uJb1VeHBzupesBi6xM9Sh98JhhfmM1nvMTYHL8Pd26b",
"status": 0,
"order": {
"id": 1,
"srcAmount": "100000000000000000",
"minDstAmount": "100000000000000000",
"estimatedDstAmount": "100000000000000000",
"expirationTime": 1634025600000,
"receiver": "6uJb1VeHBzupesBi6xM9Sh98JhhfmM1nvMTYHL8Pd26b",
"srcAssetIsNative": "true",
"dstAssetIsNative": "false",
"fee": {
"protocolFee": 5,
"integratorFee": 3,
"surplusPercentage": 2,
"protocolDstAta": "string",
"integratorDstAta": "string",
"maxCancellationPremium": "string"
},
"dutchAuctionData": {
"startTime": 1715000000,
"duration": 300,
"initialRateBump": 1,
"pointsAndTimeDeltas": [
{
"rateBump": 1,
"timeDelta": 30
}
]
},
"srcMint": "So11111111111111111111111111111111111111112",
"dstMint": "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU",
"cancellationAuctionDuration": 1
},
"approximateTakingAmount": "970000000",
"cancelTx": "5zXYv1KwMkGgyZ8hA5QYpMjPsnvPiK7PXivJLBX9vhvB",
"fills": [
{
"txSignature": "41EYz9L7196ZYPY9V61u33Dhp6dpg7nY1pVexbxBs36xCQLo1fnxvFMBBpjXnkg3ETrz1jnjLPWYvzpu8xDkP39K",
"filledMakerAmount": "100000000000000000",
"filledAuctionTakerAmount": "100000000000000000"
}
],
"createdAt": 1715000000,
"expirationTime": 1715000000,
"cancelable": false
}
]
}