Create a LIMIT or MARKET order
Request
Body Params application/json
A numeric string for the price per share
Allowed values:LIMITMARKET
{
"data": {
"pricePerShare": "string",
"strategy": "LIMIT",
"slippageBps": "string",
"order": {
"hash": "string",
"salt": "string",
"maker": "string",
"signer": "string",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "string",
"makerAmount": "string",
"takerAmount": "string",
"expiration": "string",
"nonce": "string",
"feeRateBps": "string",
"side": 0,
"signatureType": 0,
"signature": "string"
}
}
}
Request samples
curl --location --request POST 'https://api-sepolia.predict.fun/orders' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"pricePerShare": "string",
"strategy": "LIMIT",
"slippageBps": "string",
"order": {
"hash": "string",
"salt": "string",
"maker": "string",
"signer": "string",
"taker": "0x0000000000000000000000000000000000000000",
"tokenId": "string",
"makerAmount": "string",
"takerAmount": "string",
"expiration": "string",
"nonce": "string",
"feeRateBps": "string",
"side": 0,
"signatureType": 0,
"signature": "string"
}
}
}'
Responses
{
"success": true,
"data": {
"code": "OK"
}
}
Modified at 2024-12-11 12:14:21