Type aliases
BalanceToken
BalanceToken: { address: string; allowance: string; compoundSupplyAllowance: string; decimals: number; title: string; total: string }
Type declaration
-
address: string
-
allowance: string
-
compoundSupplyAllowance: string
-
decimals: number
-
title: string
-
total: string
ChartsData
ChartsData: { timestamp: number; value: number | null }
Type declaration
-
timestamp: number
-
value: number | null
MetaConfigResponse
Meta
ConfigResponse: { defaults: { productId: string }; networkId: number; opiumContracts: { CompoundSupplyAggregator: string; TokenSpender: string }; supportedMaturities: number[]; supportedTokens: SupportedToken[] }
Type declaration
-
defaults: { productId: string }
-
networkId: number
-
opiumContracts: { CompoundSupplyAggregator: string; TokenSpender: string }
-
CompoundSupplyAggregator: string
-
TokenSpender: string
-
supportedMaturities: number[]
-
Order
Order
: { createdAt
: number; filled
: number; maturity
: number; nominal
: number; orderId
: string; pay
: { description
: string; rate
: number; type
: PayReceiveType }; productId
: string; receive
: { description
: string; rate
: number; type
: PayReceiveType }; status
: PayReceiveType; token
: string }
Type declaration
-
createdAt: number
-
filled: number
-
maturity: number
-
nominal: number
-
orderId: string
-
pay: { description: string; rate: number; type: PayReceiveType }
-
description: string
-
rate: number
-
-
productId: string
-
receive: { description: string; rate: number; type: PayReceiveType }
-
description: string
-
rate: number
-
-
-
token: string
Position
Position
: { createdAt
: number; nominal
: number; pay
: null | { accInterest
: number; description
: string; rate
: string; type
: PayReceiveType }; populate
: null | { maturity
: number; nominal
: number; pay
: { rate
?: undefined | number; type
: PayReceiveType }; productId
: string; receive
: { rate
?: undefined | number; type
: PayReceiveType } }; receive
: null | { accInterest
: number; description
: string; rate
: string; type
: PayReceiveType }; token
: string; type
: PositionByAddressType }
Type declaration
-
createdAt: number
-
nominal: number
-
pay: null | { accInterest: number; description: string; rate: string; type: PayReceiveType }
-
populate: null | { maturity: number; nominal: number; pay: { rate?: undefined | number; type: PayReceiveType }; productId: string; receive: { rate?: undefined | number; type: PayReceiveType } }
-
receive: null | { accInterest: number; description: string; rate: string; type: PayReceiveType }
-
token: string
-
PostOrdersFormRequestBody
Post
OrdersFormRequestBody: { aggregate: AggregateType; maturity: number; nominal: number; partialFill: boolean; pay: { rate: number | null; type: PayReceiveType }; productId: string; receive: { rate: number | null; type: PayReceiveType } }
Type declaration
-
-
maturity: number
-
nominal: number
-
partialFill: boolean
-
pay: { rate: number | null; type: PayReceiveType }
-
productId: string
-
receive: { rate: number | null; type: PayReceiveType }
PostOrdersFormResponse
Post
OrdersFormResponse: { formedOrderId: string; orderToSign: EIP712Message }
PostOrdersSignRequestBody
PostOrdersSignRequestBody: { formedOrderId: string; signature: string }
Type declaration
-
formedOrderId: string
-
signature: string
PostOrdersSignResponse
PostOrdersSignResponse: { orderId: string }
Product
Product
: { fixedRateSupported
: boolean; margin
: number; productId
: string; subtype
: ProductSubtype; title
: string; token
: string; type
: ProductType }
Type declaration
-
fixedRateSupported: boolean
-
margin: number
-
productId: string
-
-
title: string
-
token: string
-
ProductQuoteResponse
ProductQuoteResponse: { fixedRate: number }
PutOrdersCancelRequestQuery
PutOrdersCancelRequestQuery: { orderIds: string[] }
SupportedToken
SupportedToken: { address: string; decimals: number; title: string }
Type declaration
-
address: string
-
decimals: number
-
title: string
Swap
Swap
: { createdAt
: number; fixedRate
: null | { depositAmount
: number }; maturity
: number; nominal
: number; pay
: { accInterest
: number; description
: string; rate
: number; type
: PayReceiveType }; receive
: { accInterest
: number; description
: string; rate
: number; type
: PayReceiveType }; status
: SwapStatus; swapId
: string; token
: string; txHash
: string }
Type declaration
-
createdAt: number
-
fixedRate: null | { depositAmount: number }
-
maturity: number
-
nominal: number
-
pay: { accInterest: number; description: string; rate: number; type: PayReceiveType }
-
accInterest: number
-
description: string
-
rate: number
-
-
receive: { accInterest: number; description: string; rate: number; type: PayReceiveType }
-
accInterest: number
-
description: string
-
rate: number
-
-
-
swapId: string
-
token: string
-
txHash: string
WalletBalanceResponse
Wallet
BalanceResponse: { eth: string; tokens: BalanceToken[] }