Skip to main content
POST
/
orders
Create Order
curl --request POST \
  --url https://api.limitless.exchange/orders \
  --header 'Content-Type: application/json' \
  --cookie limitless_session= \
  --data '
{
  "order": {
    "salt": 1234567890,
    "maker": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "signer": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "tokenId": "19633204485790857949828516737993423758628930235371629943999544859324645414627",
    "makerAmount": 1000000000000000000,
    "takerAmount": 750000000000000000,
    "feeRateBps": 0,
    "side": 0,
    "signature": "0x123abc456def789ghi0123abc456def789ghi0123abc456def789ghi0123456789012345678901",
    "signatureType": 2,
    "taker": "0x0000000000000000000000000000000000000000",
    "expiration": "2025-04-30T23:59:59Z",
    "nonce": 42,
    "price": 0.75
  },
  "ownerId": 12345,
  "orderType": "GTC",
  "marketSlug": "biden-vs-trump-2024"
}
'
{
  "order": {
    "salt": 1234567890,
    "maker": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "signer": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
    "tokenId": "19633204485790857949828516737993423758628930235371629943999544859324645414627",
    "makerAmount": 1000000000000000000,
    "takerAmount": 750000000000000000,
    "feeRateBps": 0,
    "side": 0,
    "signature": "0x123abc456def789ghi0123abc456def789ghi0123abc456def789ghi0123456789012345678901",
    "signatureType": 2,
    "taker": "0x0000000000000000000000000000000000000000",
    "expiration": "2025-04-30T23:59:59Z",
    "nonce": 42,
    "price": 0.75
  },
  "makerMatches": [
    {}
  ]
}
Before creating orders:
  1. Fetch market data via Get Market Details to get venue and token IDs
  2. Sign the order using EIP-712 with venue.exchange as verifyingContract
  3. Ensure you have token approvals set up

Authorizations

limitless_session
string
cookie
required

Session authentication cookie obtained from /auth/login

Body

application/json

Order creation data including signature and order parameters

order
object
required

Order details including signature and amounts

ownerId
number
required

Profile ID of the order owner

Example:

12345

orderType
enum<string>
required

Order type (GTC=Good Till Cancelled, FOK=Fill Or Kill)

Available options:
FOK,
GTC
Example:

"GTC"

marketSlug
string
required

Market identifier slug

Example:

"biden-vs-trump-2024"

Response

Order successfully created and matched

order
object
required

Order details

makerMatches
object[]

Maker matches if order was matched immediately