Deploy a new on-chain order book for a token pair
Creates a new on-chain order book that pairs a stock token with a quote token. The order book settles trades through a custody contract on-chain. BothDocumentation Index
Fetch the complete documentation index at: https://docs.trusset.org/llms.txt
Use this file to discover all available pages before exploring further.
tokenAddress and quoteTokenAddress must reference deployed, registered tokens within the instance. The custody contract handles escrow during the settlement lifecycle.
trading service enabled. Pass the key as x-api-key header in the format trusset_{instanceRef}_{secret}.
0x[a-fA-F0-9]{40}.0x[a-fA-F0-9]{40}.LIGHT_TOKEN or STOCK_TOKEN. Defaults to LIGHT_TOKEN.tokenType is STOCK_TOKEN. Max 100 characters.false.| Code | Status | Description |
|---|---|---|
ORDER_BOOK_EXISTS | 409 | An order book for this token pair already exists |
INVALID_CONFIG | 400 | Invalid order book configuration |
INVALID_PAIR | 400 | Invalid token pair (e.g. same token for both sides) |
TOKEN_NOT_REGISTERED | 400 | One or both tokens are not registered in this instance |
VALIDATION_ERROR | 400 | Request body failed schema validation |