Properties
Readonly
equityTokenAddress
equityTokenAddress: string
Private
isProcessingSubscriptionRequest
isProcessingSubscriptionRequest: boolean = false
Optional
onUpdate
onUpdate?: (() => void)
Private
openOrders
openOrders: {
accountId: number;
accountUser: string;
createdTimestampUnixMillis: number;
expiryTimestampUnixMillis: number;
id: string;
kind: {
kind: "market";
} | {
args: {
limitPrice: BigNumber;
};
kind: "limit";
} | {
args: {
stopLoss?: null | {
kind: "position";
} | {
id: string;
kind: "order";
};
triggerPrice: BigNumber;
};
kind: "stopMarket";
} | {
args: {
limitPrice: BigNumber;
triggerPrice: BigNumber;
};
kind: "stopLimit";
} | {
args: {
takeProfit?: null | {
kind: "position";
} | {
id: string;
kind: "order";
};
triggerPrice: BigNumber;
};
kind: "limitTrigger";
} | {
kind: string;
};
lpId: string;
nonce: string;
pair: Pair;
signature: string;
size: {
amount: BigNumber;
unit: "lpc" | "lot";
};
status: {
content: {
status: "placed";
} | {
content: {
timestampUnixMillis: number;
triggerPrice: BigNumber;
};
status: "triggered";
};
status: "open";
} | {
content: {
price: BigNumber;
settlementStatus: {
status: "queued";
} | {
status: "beforeTx";
} | {
status: "indexing";
} | {
content: {
txHash: string;
};
status: "settled";
};
timestampUnixMillis: number;
};
status: "filled";
} | {
content: {
reason: string;
timestampUnixMillis: number;
userCancellation?: null | {
address: string;
nonce: string;
signature: {
r: string;
s: string;
v: number;
};
};
};
status: "cancelled";
};
}[]
Type declaration
accountId: number
accountUser: string
createdTimestampUnixMillis: number
expiryTimestampUnixMillis: number
id: string
kind: {
kind: "market";
} | {
args: {
limitPrice: BigNumber;
};
kind: "limit";
} | {
args: {
stopLoss?: null | {
kind: "position";
} | {
id: string;
kind: "order";
};
triggerPrice: BigNumber;
};
kind: "stopMarket";
} | {
args: {
limitPrice: BigNumber;
triggerPrice: BigNumber;
};
kind: "stopLimit";
} | {
args: {
takeProfit?: null | {
kind: "position";
} | {
id: string;
kind: "order";
};
triggerPrice: BigNumber;
};
kind: "limitTrigger";
} | {
kind: string;
}
lpId: string
nonce: string
pair: Pair
signature: string
size: {
amount: BigNumber;
unit: "lpc" | "lot";
}
amount: BigNumber
unit: "lpc" | "lot"
status: {
content: {
status: "placed";
} | {
content: {
timestampUnixMillis: number;
triggerPrice: BigNumber;
};
status: "triggered";
};
status: "open";
} | {
content: {
price: BigNumber;
settlementStatus: {
status: "queued";
} | {
status: "beforeTx";
} | {
status: "indexing";
} | {
content: {
txHash: string;
};
status: "settled";
};
timestampUnixMillis: number;
};
status: "filled";
} | {
content: {
reason: string;
timestampUnixMillis: number;
userCancellation?: null | {
address: string;
nonce: string;
signature: {
r: string;
s: string;
v: number;
};
};
};
status: "cancelled";
}
Private
orderPublicationListener
Private
positions
positions: Position[]
Private
Readonly
protocol
Private
realizedEquity
realizedEquity: BigNumber
Private
subsriptionId
subsriptionId: null | string = null
A trade account instance. The instance is connected to a specific equity token, and will only have access to LPs with that same underlying token.