For the complete documentation index, see llms.txt. This page is also available as Markdown.

One Click Flow

For API keys with a bound user wallet address. The server submits transactions after the user delegates once.

Authorization

Steps

  1. GET /api/v1/1ct/status — check delegation.

  2. If not enabled: POST /api/v1/1ct/prepare → user signs EIP-712 → POST /api/v1/1ct/enable.

  3. Call /send endpoints for orders and cash.

Details: trading/one-click-delegated.md. viem example: demo-code.md.

Send endpoints

Operation
Endpoint

Place order

POST /api/v1/orders/send

Cancel order

DELETE /api/v1/orders/{orderId}/send

Deposit

POST /api/v1/cash/deposits/send

Withdraw

POST /api/v1/cash/withdrawals/send

Deposit prerequisite

User wallet must approve the cash token spender before /cash/deposits/send.

Approval owner is the API key bound userAddress. See cash/deposits.md for spender addresses.

Last updated