Create a limit order

POST /ft/orders/:chainId/

Examples

The data to be sent to the endpoint consists of limit order parameters and a signature of those parameters produced by order maker. Generating this data consists of these steps: 1. compose order parameters 2. sign an object with these parameters with eth_signTypedData 3. combine order parameters with the signature.

The resulting data will be validated and accepted by the POST endpoint and will have the specified shape.

curl -X POST \
  'https://api.paraswap.io/ft/orders/137' \
  --header 'Content-Type: application/json' \
  --data-raw '{ 
    "maker": "0x05182E579FDfCf69E4390c3411D8FeA1fb6467cf",
    "taker": "0x0000000000000000000000000000000000000000",
    "nonceAndMeta": "7433034152904838547212883274543254857465784035140417181410394112",
    "expiry": 0,
    "makerAsset": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
    "takerAsset": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
    "makerAmount": "10000000000000000",
    "takerAmount": "7775870000000000",
    "signature": "0x43de8dbc8228594171d0ed3e623ca0ab5c24f46bf0575800624ae56723712f807ecaf7dc8edfcf0d4517f80f11bf016bde0a9a20e243eea2bb32e55eadbb6b0d1b"
}'

Query parameters:

  • chainId:network id (Ethereum Mainnet = 1)

Body parameters

Important notice:

  • nonceAndMeta: needs to be encoded as described in:

Data structure in our centralized system

Response

Understand the response by checking our dedicated page:

Data structure in our centralized system

Last updated