---
title: "Build place order with deposit calldata"
method: POST
path: "/api/v1/orders/with-deposit/calldata"
tags: ["Trading Orders"]
---

# Build place order with deposit calldata

`POST /api/v1/orders/with-deposit/calldata`

## Request

- Base URL: `https://rwa-api.anchored.finance/rwa/trading`
- URL: `https://rwa-api.anchored.finance/rwa/trading/api/v1/orders/with-deposit/calldata`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in header `x-api-nonce`
  - API key in header `x-api-ts`
  - API key in header `x-api-sign`
  - API key in header `x-api-chain-id`
  - API key in header `x-api-p`
- TypeScript: <https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/docs/api/v1/orders/with-deposit/calldata/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- TradingPlaceOrderWithDepositCalldataReqDto
  - `stockAddress` string, required: Stock token contract address
  - `depositTokenAddress` string: Deposit token contract address. Required for buy orders.
  - `depositAmount` number, required: Human-readable deposit token amount
  - `side` 'Buy' | 'Sell', required: Order side
  - `type` 'Limit' | 'Market', required: Order type
  - `quantity` number: Quantity. Required for limit orders and market sell orders.
  - `notional` number: Notional amount. Required for market buy orders.
  - `price` number: Limit price. Required for limit orders.
  - `timeInForce` 'DAY' | 'GTC' | 'OPG' | 'IOC' | 'FOK' | 'GTX' | 'GTD' | 'CLS': Time in force. Required for limit orders.
  - `deadline` integer, required: Unix seconds transaction deadline

## Response `200`

OK

- BaseResponseTradingOrderCalldataRespDto: Base Response
  - `code` integer: if not 200, it means error
  - `errMsg` string: if code not 200,this is error message
  - `data` TradingOrderCalldataRespDto
    - `chainId` integer: Chain id
    - `productType` 'FUND' | 'Common' | 'MondayTrade' | 'Anchored' | 'Synfutures': Product type
    - `toAddress` string: Router contract address to send the transaction to
    - `value` string: Native token value to send with the transaction
    - `callData` string: Encoded transaction calldata
    - `method` string: Contract method name
  - `uuid` string: every request has a uuid
  - `t` integer: server time

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api.md) - [All operations](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/synfutures/apis/anchored-trading-partner-api/revisions/8df20ab57300?raw)
