Skip to main content
POST
Add margin to a copy position

Authorizations

X-Monaco-Signature
string
header
required

Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.

Path Parameters

followId
string
required

Body

application/json
followId
string<uuid> | null

The follow's id

tradingPairId
string<uuid> | null

Trading pair UUID of the copy position to add margin to

amount
string | null

Margin to add, in quote units: a positive decimal, taken from the follow's copy account

Example:

"25"

Response

OK

followId
string<uuid> | null

The follow's id

tradingPairId
string<uuid> | null

Trading pair UUID of the copy position

riskBucketId
string<uuid> | null

The copy position's isolated risk bucket

positionId
string<uuid> | null

The copy position's id

positionMargin
string | null

The copy position's margin after the add, in quote units

Example:

"125"

copyAccountAvailable
string | null

What the copy account can still put into this position, in quote units, after the add

Example:

"875"