curl --request POST \
--url https://api-testnet.mayybee.com/api/orders \
--header 'Content-Type: application/json' \
--data '
{
"maker": "0x7aDB49aE5DF789EE9B9F82614609967cCe4eE23d",
"tokenId": "25930605474857043641926317989588861972412542680030529942514995269236952683597",
"makerAmount": "10000000000000000000",
"takerAmount": "20000000000000000000",
"marketId": "jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d",
"signature": "0x1234567890abcdef...",
"signer": "<string>",
"side": 0,
"signatureType": 1,
"expiration": 1704153600,
"feeRateBps": 0,
"salt": "1704067200123abc",
"nonce": "0",
"taker": "0x0000000000000000000000000000000000000000"
}
'{
"success": true,
"orderId": "<string>",
"matched": true,
"trades": [
{
"id": "<string>",
"price": 123,
"size": "<string>",
"txHash": "<string>"
}
]
}Submit an order with EIP-712 signature. Use this endpoint if you want to sign orders yourself. For gasless orders (recommended), use POST /api/orders/gasless instead.
Security: The signature is verified against the signer address before the order is accepted.
curl --request POST \
--url https://api-testnet.mayybee.com/api/orders \
--header 'Content-Type: application/json' \
--data '
{
"maker": "0x7aDB49aE5DF789EE9B9F82614609967cCe4eE23d",
"tokenId": "25930605474857043641926317989588861972412542680030529942514995269236952683597",
"makerAmount": "10000000000000000000",
"takerAmount": "20000000000000000000",
"marketId": "jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d",
"signature": "0x1234567890abcdef...",
"signer": "<string>",
"side": 0,
"signatureType": 1,
"expiration": 1704153600,
"feeRateBps": 0,
"salt": "1704067200123abc",
"nonce": "0",
"taker": "0x0000000000000000000000000000000000000000"
}
'{
"success": true,
"orderId": "<string>",
"matched": true,
"trades": [
{
"id": "<string>",
"price": 123,
"size": "<string>",
"txHash": "<string>"
}
]
}Wallet address that owns the tokens being traded. Must be a valid Ethereum address (0x + 40 hex chars).
"0x7aDB49aE5DF789EE9B9F82614609967cCe4eE23d"
ERC1155 token ID for the outcome token (YES or NO). Get this from the market's conditionId calculation.
"25930605474857043641926317989588861972412542680030529942514995269236952683597"
Amount the maker is providing, in wei (18 decimals). For BUY: collateral amount. For SELL: token amount.
"10000000000000000000"
Amount the maker wants to receive, in wei (18 decimals). For BUY: token amount. For SELL: collateral amount.
"20000000000000000000"
Unique market identifier from Convex database. Used to route orders to correct orderbook.
"jd7ay8vzqtcsyj48zyapp6aa9h7yfq2d"
EIP-712 signature of the order struct. Must be signed by the signer address. Format: 0x + 130 hex chars.
"0x1234567890abcdef..."
Address that signed the EIP-712 order. Usually same as maker, but can be a delegate.
Order side: 0 = BUY (pay collateral, get tokens), 1 = SELL (sell tokens, get collateral).
0, 1 0
Signature type: 0 = EOA signature, 1 = EIP-712 typed signature (recommended).
0, 1 Unix timestamp (seconds) when the order expires. Expired orders are automatically rejected.
1704153600
Fee rate in basis points (0.01%). 100 = 1% fee. Currently 0 for testnet.
0 <= x <= 1000Unique random value to prevent order replay attacks. Usually timestamp + random string.
"1704067200123abc"
Order nonce for batch cancellation. Increment to cancel all orders with lower nonces.
Specific counterparty address. Use 0x0000...0000 (zero address) to allow any taker.