Skip to main content

Interface: IPosition

Represents a Chromatic position.

Properties

_binMargins

_binMargins: IBinMargin[]

The bin margins for the position, it represents the amount of collateral for each bin

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:57


_protocolFeeRate

_protocolFeeRate: number

The protocol fee rate for the market

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:60


claimTimestamp

Optional claimTimestamp: bigint

The timestamp when the position was claimed

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:68


closePrice

closePrice: undefined | bigint

The price of the underlying asset when position was closed.

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:64


closeTimestamp

closeTimestamp: bigint

The timestamp when the position was closed

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:51


closeVersion

closeVersion: bigint

The version of the oracle when the position was closed

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:45


id

id: bigint

The position identifier

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:41


makerMargin

makerMargin: bigint

The amount of maker's margin

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:62


openPrice

openPrice: undefined | bigint

The price of the underlying asset when position was opened.

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:66


openTimestamp

openTimestamp: bigint

The timestamp when the position was opened

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:49


openVersion

openVersion: bigint

The version of the oracle when the position was opened

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:43


owner

owner: string

The owner of the position, usually it is the account address of trader

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:55


qty

qty: bigint

The quantity of the position

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:47


takerMargin

takerMargin: bigint

The amount of collateral that a trader must provide

Defined in

packages/sdk-viem/src/entities/ChromaticPosition.ts:53