For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/gateway/create-paper-deposit.md.

Add test funds (paper trading only)

Organization tokenNo token

POST
/paper/deposits

Paper-trading environments only. This endpoint is not served in production, where it answers 404. It exists so integrations can be exercised end to end in a sandbox without moving real money.

Mints amount of the DeFi listing asset_id into the caller's paper wallet. When the funds are allocated, the caller's CeFi trading account is set up if it has none and the same amount is allocated to CeFi trading through POST /custody/allocations, returned in allocation. With allocate unset, only a listing with a CeFi market is allocated; a DeFi-only listing stays in the wallet. allocate: true on a DeFi-only listing answers 400 before anything is minted. The allocation settles in the background exactly like any other; poll GET /custody/allocations/{id} for its outcome.

If the allocation step fails, the minted funds stay in the wallet unallocated.

Rate limit: counts against the Money movement limit, 20 a minute and 300 a day (user token, per user); 200 a minute and 3,000 a day (organization api key, per organization). See Rate limits.

Authorization

bearerAuth
headerAuthorizationBearer <JWT>

An access token from POST /v1/auth/api-key/token. An organization token lasts one hour and has no refresh token; a personal token can be refreshed.

Header Parameters

TM-On-Behalf-Of?string

Act as one of your organization's users. The value is the user_id returned when the user was created; the request then reads and writes that user's account. Requires an organization token and a user your organization created: 400 for a personal token, a repeated header or a non-UUID, 403 for a user outside your organization. Not accepted on organization-scoped routes.

Formatuuid

Request Body

application/json
  1. body

Request to add test funds to the caller's paper wallet

asset_id*string

DeFi listing identifier (UUID)

Formatuuid
amount*string

Amount to add, as a positive decimal string in asset units

allocate?boolean

Whether to also allocate the added funds to CeFi trading through an allocation. Unset allocates them when the listing has a CeFi market.

Response Body

Test funds added, and allocated to CeFi trading when allocation is present

application/json
  1. response

The test funds added and the allocation setting them aside for CeFi, if any

asset_id*string

DeFi listing identifier (UUID)

Formatuuid
amount*string

Amount added, as a decimal string

wallet_balance*string

The paper wallet's balance of the listing after the funds were added

allocation?

An allocation and what it has left behind on each side so far.

Example Request
curl -X POST 'https://api.truemarkets.co/v1/gateway/paper/deposits' \  -H 'TM-On-Behalf-Of: 3f6d2c0e-8a41-4c2b-9f1e-2b7d5c0a9e11' \  -H 'Content-Type: application/json' \  -d '{  "asset_id": "b3d9e5f2-1a4c-4e7b-9f0d-2c8a6b3e5f91",  "amount": "1000"}'
Example Response
{  "asset_id": "b3d9e5f2-1a4c-4e7b-9f0d-2c8a6b3e5f91",  "amount": "1000",  "wallet_balance": "1000",  "allocation": {    "id": "c1d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f",    "status": "crediting",    "asset_id": "b3d9e5f2-1a4c-4e7b-9f0d-2c8a6b3e5f91",    "asset_symbol": "USDC",    "amount": "100.00",    "allocated_total": "250.00",    "transfer": {      "id": "a7f3c2e1-9b4d-4e6f-8a1c-3d5e7f9b2c4a",      "status": "COMPLETED"    },    "failure_reason": "cefi REJECTED",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }}