Create AMM Instruction
POST/v2/amm-instructions
Creates an AMM instruction, requires bearer token in authorization header.
This endpoint uses the signing format which does not require strict field ordering
in the request body. Quantities and prices does not require strict precision.
E.g. for asset precision of 4 - 100, 100.0, 100.00, 100.000 and 100.0000 are all accepted.
Ratelimited: True
Request
Responses
- 200
- 400
- 401
- 403
- 429
- 500
Status OK. This means a create AMM instruction command was successfully acknowledged. It does not necessarily mean the instruction was created. To check the current status, query Get AMM Instruction by ID using the instructionId received in the response payload.
Bad Request
For example, sending a request with the BX-SIGNATURE header missing will result in the following response:
Not Authenticated
Access Forbidden
Too Many Requests
Internal Server Error