Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.56 KB

PerpetualState.md

File metadata and controls

38 lines (28 loc) · 1.56 KB

Structure

PerpetualState represent the complete state of Abacus

data class PerpetualState(
 val assets: Map<String, Asset>?,
 val marketsSummary: PerpetualMarketSummary?,
 val orderbooks: Map<String, MarketOrderbook>?,
 val candles: Map<String, MarketCandles>?,
 val trades: Map<String, MarketTrades>?,
 val historicalFundings: Map<String, MarketHistoricalFundings>?,
 val wallet: Wallet?,
 val account: Account?,
 val historicalPnl: Map<String, SubaccountHistoricalPNLs>?,
 val fills: Map<String, SubaccountFills>?,
 val transfers: Map<String, SubaccountTransfers>?,
 val fundingPayments: Map<String, SubaccountFundingPayments>?,
 val configs: Configs?,
 val input: Input?,
 val availableSubaccountNumbers: Array,  val transferStatuses: Map<String, TransferStatus>? )

SubaccountHistoricalPNLs

A sorted list of SubaccountHistoricalPNL

SubaccountFills

A sorted list of SubaccountFill

SubaccountTransfers

A sorted list of SubaccountTransfer

SubaccountFundingPayments

A sorted list of SubaccountFundingPayment