Orders

Submit a new order.

post/orders/new

Request

  • Base URL: http://localhost:8081
  • URL: http://localhost:8081/orders/new
  • Auth: none declared. Required headers: x-chain-id, x-aggregator, x-settlement

Request body

market_idstring

The id of the market an order is being placed for.

recipientstring

The address which will receive the purchased tokens.

referrerstring

The address which will receive the referral fee.

amountstring

The amount of tokens to purchase.

min_amount_outstring

The minimum number of tokens the recipient is willing to receive.

max_feestring

The maximum fee the recipient will pay.

submittedstring

Timestamp at which the order was submitted.

deadlinestring

Timestamp at which the order expires.

userstring

Address of the user who submitted the order.

signaturestring

Signature for a tx containing the same order data.

Response

The digest of the submitted order.

string required

Changes

No recorded changes to this operation across all 1 revision of this API.