Skip to main content
GET
Get position PnL history

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

positionId
string
default:2b1a5f9c-0000-4000-8000-000000000002
required

Query Parameters

interval
enum<string>
required

Sample interval

Available options:
1m,
5m,
15m,
1h,
4h,
1d
Minimum string length: 1
startTime
integer<int64>

Start time as Unix timestamp (milliseconds)

Required range: 0 <= x <= 4102444800000
endTime
integer<int64>

End time as Unix timestamp (milliseconds)

Required range: 0 <= x <= 4102444800000

Response

OK

positionId
string<uuid> | null

Position UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

interval
string | null

Interval used for this query

Example:

"1h"

data
object[] | null