Skip to main content
POST
TypeScript

Authorizations

Authorization
string
header
required

The Venue key (trdrs_vk_sandbox_… or trdrs_vk_production_…), in preview. It belongs to one venue in one environment and carries the scopes it was created with. The venue's verified owner creates it while signed in. It works on the /api/venues/{venueId} routes and, with trader:read or trader:trade, on the account, market and trading routes, reading the venue's own traders' accounts and routing their orders, each request naming its trader in x-trdrs-trader. A trdrs_sk_… key can't be used in its place. It reaches its venue's routes and its venue's own traders, and the owner manages keys from a signed-in session. Keep it on your server.

Headers

Idempotency-Key
string
required

A key you choose, 1 to 128 characters, that identifies this write. Send the same key when you retry it, so the write is never applied twice.

Required string length: 1 - 128

Path Parameters

venueId
string<uuid>
required

Body

application/json
groupId
string
required

The group whose customer exposure is hedged.

name
string
required
ratio
string
required

The share of exposure to hedge, a decimal string from 0 to 1. Under the budget basis, the most the copy ratio may reach.

quantityCap
string | null
required

The largest hedge position, in the instrument's quantity unit and above zero, or null for no cap.

notionalCap
string | null
required

The largest hedge notional, above zero, or null for no cap.

residualThreshold
string
required

The smallest change in the hedge target, in the instrument's quantity unit, that sends an order. A smaller change waits.

mode
enum<string>
default:group

group hedges the group's net exposure into destinationAccountId. account hedges each customer account into its own hedge account at connectionId.

Available options:
group,
account
destinationAccountId
string<uuid>

The venue-owned provider account a group policy trades in. An account policy sends none.

connectionId
string<uuid>

An account policy's hedge market: your connection every instrument of the group hedges at, where each customer account's hedge account trades.

ratioBasis
enum<string>

An account policy's copy ratio: fixed is ratio itself; budget is each account's hedge budget over its max loss, never above ratio.

Available options:
fixed,
budget
minHedgeNotional
string

An account policy's minimum hedge size, in US dollars: a hedge order whose notional is below it waits, recorded on the target, unless it takes the hedge position to flat.

failureLimit
integer

How many failed hedges in a row of a customer account at one hedge market halt its opening orders on the instruments that connection hedges, under an account policy.

Required range: 1 <= x <= 20

Response

Success. The response is sent with Cache-Control: no-store, so don't cache it.

policy
object
required