Order
curl --request POST \
--url https://api.bebop.xyz/pmm/{chain}/v3/order \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "<string>",
"signature": "<string>",
"sign_scheme": "EIP712",
"permit2": {
"signature": "<string>",
"approvals_deadline": 123,
"token_addresses": [
"<string>"
],
"token_nonces": [
123
]
},
"permit": {
"signature": "<string>",
"approvals_deadline": 123
}
}
'{
"status": "<string>",
"expiry": 123,
"txHash": "<string>"
}API Reference
Order
This endpoint provides a simple order placement mechanism for quotes retrieved from /quote endpoint. You will be required to sign the quote object using an EOA private key and POST this signature along with the quote ID to place an order.
Bebop submits order on chain having received maker and taker signatures. This means that Bebop pays the network (gas) fees as they are already included in the price.
POST
/
v3
/
order
Order
curl --request POST \
--url https://api.bebop.xyz/pmm/{chain}/v3/order \
--header 'Content-Type: application/json' \
--data '
{
"quote_id": "<string>",
"signature": "<string>",
"sign_scheme": "EIP712",
"permit2": {
"signature": "<string>",
"approvals_deadline": 123,
"token_addresses": [
"<string>"
],
"token_nonces": [
123
]
},
"permit": {
"signature": "<string>",
"approvals_deadline": 123
}
}
'{
"status": "<string>",
"expiry": 123,
"txHash": "<string>"
}Body
application/json
Id of the quote to use for the order
Taker's signature produced from the toSign field in the quote
Sign scheme used to produce the signature
Permit2 info for taker
Show child attributes
Show child attributes
Permit info for taker
Show child attributes
Show child attributes
Was this page helpful?
⌘I