Documentation
¶
Index ¶
- Constants
- type API
- type AddressBookItem
- type AddressBookType
- type Advanced
- type Amount
- type AnnouncementNotification
- type AskIv
- type Asks
- type AveragePrice
- type BaseMessage
- type BestAskAmount
- type BestAskPrice
- type BestBidAmount
- type BestBidPrice
- type BidIv
- type Bids
- type BookNotification
- type BookNotificationRaw
- type BookState
- type BookSummary
- type ChartVolume
- type Commission
- type Continuation
- type ContractSize
- type Currency
- type CurrencyAddress
- type CurrencyAmount
- type CurrencyDetail
- type CurrencyPair
- type CurrencyPortfolio
- type CurrencyTransactionID
- type CurrencyWithAny
- type CurrentFunding
- type DeliveryPrice
- type Deposit
- type DepositState
- type DeribitPriceIndexNotification
- type DeribitPriceRankingNotification
- type DeribitPriceRankingNotificationItems0
- type Direction
- type ErrorMessage
- type EstimatedExpirationPriceNotification
- type Fee
- type FilledAmount
- type Funding8h
- type Greeks
- type ImpliedVolatility
- type Implv
- type IndexName
- type IndexPrice
- type Instrument
- type InstrumentName
- type InterestRate
- type KeyNumberPair
- type Kind
- type KindWithAny
- type Label
- type LastPrice
- type MarkIv
- type MarkPrice
- type MarkpriceOptionsNotification
- type MarkpriceOptionsNotificationItems0
- type MaxPrice
- type MaxShow
- type MinPrice
- type OkResponse
- type OpenInterest
- type Order
- type OrderID
- type OrderIDInitialMarginPair
- type OrderState
- type OrderStateInUserTrade
- type OrderType
- type OrderType2
- type OriginalOrderType
- type PerpetualNotification
- type Portfolio
- type Position
- type PostOnly
- type Price
- type PrivateAccountResponse
- type PrivateAccountResponseResult
- type PrivateAddToAddressBookResponse
- func (m *PrivateAddToAddressBookResponse) MarshalBinary() ([]byte, error)
- func (m PrivateAddToAddressBookResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateAddToAddressBookResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateAddToAddressBookResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateAddToAddressBookResponse) Validate(formats strfmt.Registry) error
- type PrivateAddressBookResponse
- func (m *PrivateAddressBookResponse) MarshalBinary() ([]byte, error)
- func (m PrivateAddressBookResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateAddressBookResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateAddressBookResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateAddressBookResponse) Validate(formats strfmt.Registry) error
- type PrivateBuyAndSellResponse
- func (m *PrivateBuyAndSellResponse) MarshalBinary() ([]byte, error)
- func (m PrivateBuyAndSellResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateBuyAndSellResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateBuyAndSellResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateBuyAndSellResponse) Validate(formats strfmt.Registry) error
- type PrivateBuyAndSellResponseAO1Result
- type PrivateCancelAllResponse
- func (m *PrivateCancelAllResponse) MarshalBinary() ([]byte, error)
- func (m PrivateCancelAllResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateCancelAllResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateCancelAllResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateCancelAllResponse) Validate(formats strfmt.Registry) error
- type PrivateCancelAllResponseAllOf1
- type PrivateCancelResponse
- func (m *PrivateCancelResponse) MarshalBinary() ([]byte, error)
- func (m PrivateCancelResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateCancelResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateCancelResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateCancelResponse) Validate(formats strfmt.Registry) error
- type PrivateCreateSubaccountResponse
- func (m *PrivateCreateSubaccountResponse) MarshalBinary() ([]byte, error)
- func (m PrivateCreateSubaccountResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateCreateSubaccountResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateCreateSubaccountResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateCreateSubaccountResponse) Validate(formats strfmt.Registry) error
- type PrivateCreateSubaccountResponseAO1Result
- type PrivateDepositAddressResponse
- func (m *PrivateDepositAddressResponse) MarshalBinary() ([]byte, error)
- func (m PrivateDepositAddressResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateDepositAddressResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateDepositAddressResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateDepositAddressResponse) Validate(formats strfmt.Registry) error
- type PrivateDepositAddressResponseAO1Result
- type PrivateEditResponse
- func (m *PrivateEditResponse) MarshalBinary() ([]byte, error)
- func (m PrivateEditResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateEditResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateEditResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateEditResponse) Validate(formats strfmt.Registry) error
- type PrivateEditResponseAO1Result
- type PrivateGetDepositsResponse
- func (m *PrivateGetDepositsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetDepositsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetDepositsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetDepositsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetDepositsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetDepositsResponseAO1Result
- type PrivateGetEmailLanguageResponse
- func (m *PrivateGetEmailLanguageResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetEmailLanguageResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetEmailLanguageResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetEmailLanguageResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetEmailLanguageResponse) Validate(formats strfmt.Registry) error
- type PrivateGetMarginsResponse
- func (m *PrivateGetMarginsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetMarginsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetMarginsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetMarginsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetMarginsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetMarginsResponseAO1Result
- type PrivateGetOpenOrdersResponse
- func (m *PrivateGetOpenOrdersResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetOpenOrdersResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetOpenOrdersResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetOpenOrdersResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetOpenOrdersResponse) Validate(formats strfmt.Registry) error
- type PrivateGetOrderHistoryResponse
- func (m *PrivateGetOrderHistoryResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetOrderHistoryResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetOrderHistoryResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetOrderHistoryResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetOrderHistoryResponse) Validate(formats strfmt.Registry) error
- type PrivateGetOrderMarginByIdsResponse
- func (m *PrivateGetOrderMarginByIdsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetOrderMarginByIdsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetOrderMarginByIdsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetOrderMarginByIdsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetOrderMarginByIdsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetOrderStateResponse
- func (m *PrivateGetOrderStateResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetOrderStateResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetOrderStateResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetOrderStateResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetOrderStateResponse) Validate(formats strfmt.Registry) error
- type PrivateGetPositionResponse
- func (m *PrivateGetPositionResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetPositionResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetPositionResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetPositionResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetPositionResponse) Validate(formats strfmt.Registry) error
- type PrivateGetPositionsResponse
- func (m *PrivateGetPositionsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetPositionsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetPositionsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetPositionsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetPositionsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetStopOrderHistoryResponse
- func (m *PrivateGetStopOrderHistoryResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetStopOrderHistoryResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetStopOrderHistoryResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetStopOrderHistoryResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetStopOrderHistoryResponse) Validate(formats strfmt.Registry) error
- type PrivateGetStopOrderHistoryResponseAO1Result
- type PrivateGetSubaccountsResponse
- func (m *PrivateGetSubaccountsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetSubaccountsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetSubaccountsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetSubaccountsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetSubaccountsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetSubaccountsResponseResultItems0
- type PrivateGetTransfersResponse
- func (m *PrivateGetTransfersResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetTransfersResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetTransfersResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetTransfersResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetTransfersResponse) Validate(formats strfmt.Registry) error
- type PrivateGetTransfersResponseAO1Result
- type PrivateGetUserTradesByOrderResponse
- func (m *PrivateGetUserTradesByOrderResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetUserTradesByOrderResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetUserTradesByOrderResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetUserTradesByOrderResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetUserTradesByOrderResponse) Validate(formats strfmt.Registry) error
- type PrivateGetUserTradesByOrderResponseAllOf1
- type PrivateGetUserTradesHistoryResponse
- func (m *PrivateGetUserTradesHistoryResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetUserTradesHistoryResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetUserTradesHistoryResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetUserTradesHistoryResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetUserTradesHistoryResponse) Validate(formats strfmt.Registry) error
- type PrivateGetUserTradesHistoryResponseAO1Result
- type PrivateGetWithdrawalsResponse
- func (m *PrivateGetWithdrawalsResponse) MarshalBinary() ([]byte, error)
- func (m PrivateGetWithdrawalsResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateGetWithdrawalsResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateGetWithdrawalsResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateGetWithdrawalsResponse) Validate(formats strfmt.Registry) error
- type PrivateGetWithdrawalsResponseAO1Result
- type PrivateRemoveFromAddressBookResponse
- func (m *PrivateRemoveFromAddressBookResponse) MarshalBinary() ([]byte, error)
- func (m PrivateRemoveFromAddressBookResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateRemoveFromAddressBookResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateRemoveFromAddressBookResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateRemoveFromAddressBookResponse) Validate(formats strfmt.Registry) error
- type PrivateSettlementResponse
- func (m *PrivateSettlementResponse) MarshalBinary() ([]byte, error)
- func (m PrivateSettlementResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateSettlementResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateSettlementResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateSettlementResponse) Validate(formats strfmt.Registry) error
- type PrivateSettlementResponseAO1Result
- type PrivateSubmitTransferResponse
- func (m *PrivateSubmitTransferResponse) MarshalBinary() ([]byte, error)
- func (m PrivateSubmitTransferResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateSubmitTransferResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateSubmitTransferResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateSubmitTransferResponse) Validate(formats strfmt.Registry) error
- type PrivateSubscribeResponse
- func (m *PrivateSubscribeResponse) MarshalBinary() ([]byte, error)
- func (m PrivateSubscribeResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateSubscribeResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateSubscribeResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateSubscribeResponse) Validate(formats strfmt.Registry) error
- type PrivateWithdrawResponse
- func (m *PrivateWithdrawResponse) MarshalBinary() ([]byte, error)
- func (m PrivateWithdrawResponse) MarshalJSON() ([]byte, error)
- func (m *PrivateWithdrawResponse) UnmarshalBinary(b []byte) error
- func (m *PrivateWithdrawResponse) UnmarshalJSON(raw []byte) error
- func (m *PrivateWithdrawResponse) Validate(formats strfmt.Registry) error
- type ProfitLoss
- type PublicAuthResponse
- func (m *PublicAuthResponse) MarshalBinary() ([]byte, error)
- func (m PublicAuthResponse) MarshalJSON() ([]byte, error)
- func (m *PublicAuthResponse) UnmarshalBinary(b []byte) error
- func (m *PublicAuthResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicAuthResponse) Validate(formats strfmt.Registry) error
- type PublicAuthResponseAO1Result
- type PublicGetAnnouncementsResponse
- func (m *PublicGetAnnouncementsResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetAnnouncementsResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetAnnouncementsResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetAnnouncementsResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetAnnouncementsResponse) Validate(formats strfmt.Registry) error
- type PublicGetAnnouncementsResponseResultItems0
- type PublicGetBookSummaryResponse
- func (m *PublicGetBookSummaryResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetBookSummaryResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetBookSummaryResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetBookSummaryResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetBookSummaryResponse) Validate(formats strfmt.Registry) error
- type PublicGetContractSizeResponse
- func (m *PublicGetContractSizeResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetContractSizeResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetContractSizeResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetContractSizeResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetContractSizeResponse) Validate(formats strfmt.Registry) error
- type PublicGetContractSizeResponseAO1Result
- type PublicGetCurrenciesResponse
- func (m *PublicGetCurrenciesResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetCurrenciesResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetCurrenciesResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetCurrenciesResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetCurrenciesResponse) Validate(formats strfmt.Registry) error
- type PublicGetFooterResponse
- func (m *PublicGetFooterResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetFooterResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetFooterResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetFooterResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetFooterResponse) Validate(formats strfmt.Registry) error
- type PublicGetFooterResponseResultItems0
- type PublicGetFundingChartDataResponse
- func (m *PublicGetFundingChartDataResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetFundingChartDataResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetFundingChartDataResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetFundingChartDataResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetFundingChartDataResponse) Validate(formats strfmt.Registry) error
- type PublicGetFundingChartDataResponseAO1Result
- type PublicGetHistoricalVolatilityResponse
- func (m *PublicGetHistoricalVolatilityResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetHistoricalVolatilityResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetHistoricalVolatilityResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetHistoricalVolatilityResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetHistoricalVolatilityResponse) Validate(formats strfmt.Registry) error
- type PublicGetInstrumentsResponse
- func (m *PublicGetInstrumentsResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetInstrumentsResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetInstrumentsResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetInstrumentsResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetInstrumentsResponse) Validate(formats strfmt.Registry) error
- type PublicGetOptionMarkPricesResponse
- type PublicGetOrderBookResponse
- func (m *PublicGetOrderBookResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetOrderBookResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetOrderBookResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetOrderBookResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetOrderBookResponse) Validate(formats strfmt.Registry) error
- type PublicGetTimeResponse
- func (m *PublicGetTimeResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetTimeResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetTimeResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetTimeResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetTimeResponse) Validate(formats strfmt.Registry) error
- type PublicGetTradesVolumesResponse
- func (m *PublicGetTradesVolumesResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetTradesVolumesResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetTradesVolumesResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetTradesVolumesResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetTradesVolumesResponse) Validate(formats strfmt.Registry) error
- type PublicGetTradingviewChartDataResponse
- func (m *PublicGetTradingviewChartDataResponse) MarshalBinary() ([]byte, error)
- func (m PublicGetTradingviewChartDataResponse) MarshalJSON() ([]byte, error)
- func (m *PublicGetTradingviewChartDataResponse) UnmarshalBinary(b []byte) error
- func (m *PublicGetTradingviewChartDataResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicGetTradingviewChartDataResponse) Validate(formats strfmt.Registry) error
- type PublicGetTradingviewChartDataResponseAO1Result
- type PublicIndexResponse
- func (m *PublicIndexResponse) MarshalBinary() ([]byte, error)
- func (m PublicIndexResponse) MarshalJSON() ([]byte, error)
- func (m *PublicIndexResponse) UnmarshalBinary(b []byte) error
- func (m *PublicIndexResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicIndexResponse) Validate(formats strfmt.Registry) error
- type PublicIndexResponseAO1Result
- type PublicSettlementResponse
- func (m *PublicSettlementResponse) MarshalBinary() ([]byte, error)
- func (m PublicSettlementResponse) MarshalJSON() ([]byte, error)
- func (m *PublicSettlementResponse) UnmarshalBinary(b []byte) error
- func (m *PublicSettlementResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicSettlementResponse) Validate(formats strfmt.Registry) error
- type PublicSettlementResponseAO1Result
- type PublicTestResponse
- func (m *PublicTestResponse) MarshalBinary() ([]byte, error)
- func (m PublicTestResponse) MarshalJSON() ([]byte, error)
- func (m *PublicTestResponse) UnmarshalBinary(b []byte) error
- func (m *PublicTestResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicTestResponse) Validate(formats strfmt.Registry) error
- type PublicTestResponseAO1Result
- type PublicTickerResponse
- func (m *PublicTickerResponse) MarshalBinary() ([]byte, error)
- func (m PublicTickerResponse) MarshalJSON() ([]byte, error)
- func (m *PublicTickerResponse) UnmarshalBinary(b []byte) error
- func (m *PublicTickerResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicTickerResponse) Validate(formats strfmt.Registry) error
- type PublicTrade
- type PublicTradesHistoryResponse
- func (m *PublicTradesHistoryResponse) MarshalBinary() ([]byte, error)
- func (m PublicTradesHistoryResponse) MarshalJSON() ([]byte, error)
- func (m *PublicTradesHistoryResponse) UnmarshalBinary(b []byte) error
- func (m *PublicTradesHistoryResponse) UnmarshalJSON(raw []byte) error
- func (m *PublicTradesHistoryResponse) Validate(formats strfmt.Registry) error
- type PublicTradesHistoryResponseAO1Result
- type Quantity
- type QuoteNotification
- type QuotePrice
- type ReduceOnly
- type ResultCount
- type Settlement
- type SettlementPrice
- type SettlementType
- type SimpleOrderType
- type Sorting
- type StateNotification
- type Stats
- type StopOrderHistoryRecord
- type StopPrice
- type TickDirection
- type TickerNotification
- type TickerNotificationWithBidsAndAsks
- type TimeInForce
- type Timestamp
- type TimestampForBookNotifications
- type TradeID
- type TradeSeq
- type TradesVolumes
- type TransferDirection
- type TransferID
- type TransferItem
- type TransferOtherSide
- type TransferState
- type TransferType
- type Trigger
- type Triggered
- type UnderlyingIndex
- type UnderlyingPrice
- type Usd
- type UserChange
- type UserPortfolioNotification
- type UserTrade
- type WalletAddressType
- type Withdrawal
- type WithdrawalState
Constants ¶
const ( // BookNotificationRawTypeSnapshot captures enum value "snapshot" BookNotificationRawTypeSnapshot string = "snapshot" // BookNotificationRawTypeChange captures enum value "change" BookNotificationRawTypeChange string = "change" )
const ( // CurrencyDetailCoinTypeBITCOIN captures enum value "BITCOIN" CurrencyDetailCoinTypeBITCOIN string = "BITCOIN" // CurrencyDetailCoinTypeETHER captures enum value "ETHER" CurrencyDetailCoinTypeETHER string = "ETHER" )
const ( // CurrencyPortfolioCurrencyBtc captures enum value "btc" CurrencyPortfolioCurrencyBtc string = "btc" // CurrencyPortfolioCurrencyEth captures enum value "eth" CurrencyPortfolioCurrencyEth string = "eth" )
const ( // InstrumentBaseCurrencyBTC captures enum value "BTC" InstrumentBaseCurrencyBTC string = "BTC" // InstrumentBaseCurrencyETH captures enum value "ETH" InstrumentBaseCurrencyETH string = "ETH" )
const ( // InstrumentOptionTypeCall captures enum value "call" InstrumentOptionTypeCall string = "call" // InstrumentOptionTypePut captures enum value "put" InstrumentOptionTypePut string = "put" )
const ( // InstrumentSettlementPeriodMonth captures enum value "month" InstrumentSettlementPeriodMonth string = "month" // InstrumentSettlementPeriodWeek captures enum value "week" InstrumentSettlementPeriodWeek string = "week" // InstrumentSettlementPeriodPerpetual captures enum value "perpetual" InstrumentSettlementPeriodPerpetual string = "perpetual" )
const ( // PrivateAccountResponseResultTypeMain captures enum value "main" PrivateAccountResponseResultTypeMain string = "main" // PrivateAccountResponseResultTypeSubaccount captures enum value "subaccount" PrivateAccountResponseResultTypeSubaccount string = "subaccount" )
const ( // PrivateGetSubaccountsResponseResultItems0TypeMain captures enum value "main" PrivateGetSubaccountsResponseResultItems0TypeMain string = "main" // PrivateGetSubaccountsResponseResultItems0TypeSubaccount captures enum value "subaccount" PrivateGetSubaccountsResponseResultItems0TypeSubaccount string = "subaccount" )
const ( // PublicGetTradingviewChartDataResponseAO1ResultStatusOk captures enum value "ok" PublicGetTradingviewChartDataResponseAO1ResultStatusOk string = "ok" // PublicGetTradingviewChartDataResponseAO1ResultStatusNoData captures enum value "no_data" PublicGetTradingviewChartDataResponseAO1ResultStatusNoData string = "no_data" )
const ( // PublicTradeLiquidationM captures enum value "M" PublicTradeLiquidationM string = "M" // PublicTradeLiquidationT captures enum value "T" PublicTradeLiquidationT string = "T" // PublicTradeLiquidationMT captures enum value "MT" PublicTradeLiquidationMT string = "MT" )
const ( // StateNotificationStateClosed captures enum value "closed" StateNotificationStateClosed string = "closed" // StateNotificationStateCreated captures enum value "created" StateNotificationStateCreated string = "created" // StateNotificationStateTerminated captures enum value "terminated" StateNotificationStateTerminated string = "terminated" )
const ( // UserTradeLiquidationM captures enum value "M" UserTradeLiquidationM string = "M" // UserTradeLiquidationT captures enum value "T" UserTradeLiquidationT string = "T" // UserTradeLiquidationMT captures enum value "MT" UserTradeLiquidationMT string = "MT" )
const ( // UserTradeLiquidityM captures enum value "M" UserTradeLiquidityM string = "M" // UserTradeLiquidityT captures enum value "T" UserTradeLiquidityT string = "T" )
const ( // UserTradeOrderTypeLimit captures enum value "limit" UserTradeOrderTypeLimit string = "limit" // UserTradeOrderTypeMarket captures enum value "market" UserTradeOrderTypeMarket string = "market" // UserTradeOrderTypeLiquidation captures enum value "liquidation" UserTradeOrderTypeLiquidation string = "liquidation" )
const ( // BaseMessageJsonrpcNr20 captures enum value "2.0" BaseMessageJsonrpcNr20 string = "2.0" )
const ( // InstrumentQuoteCurrencyUSD captures enum value "USD" InstrumentQuoteCurrencyUSD string = "USD" )
const ( // PrivateCreateSubaccountResponseAO1ResultTypeSubaccount captures enum value "subaccount" PrivateCreateSubaccountResponseAO1ResultTypeSubaccount string = "subaccount" )
const ( // PublicAuthResponseAO1ResultTokenTypeBearer captures enum value "bearer" PublicAuthResponseAO1ResultTokenTypeBearer string = "bearer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressBookItem ¶
type AddressBookItem struct { // address // Required: true Address CurrencyAddress `json:"address"` // creation timestamp // Required: true CreationTimestamp Timestamp `json:"creation_timestamp"` // currency // Required: true Currency Currency `json:"currency"` // type Type AddressBookType `json:"type,omitempty"` }
AddressBookItem address book item swagger:model address_book_item
func (*AddressBookItem) MarshalBinary ¶
func (m *AddressBookItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddressBookItem) UnmarshalBinary ¶
func (m *AddressBookItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddressBookType ¶
type AddressBookType string
AddressBookType Address book type swagger:model address_book_type
const ( // AddressBookTypeTransfer captures enum value "transfer" AddressBookTypeTransfer AddressBookType = "transfer" // AddressBookTypeWithdrawal captures enum value "withdrawal" AddressBookTypeWithdrawal AddressBookType = "withdrawal" )
type Advanced ¶
type Advanced string
Advanced advanced type: `"usd"` or `"implv"` (Only for options; field is omitted if not applicable).
swagger:model advanced
type Amount ¶
type Amount float64
Amount It represents the requested order size. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. swagger:model amount
type AnnouncementNotification ¶
type AnnouncementNotification struct { // action Action string `json:"action,omitempty"` // body // Required: true Body *string `json:"body"` // milliseconds since the Unix epoch // Required: true Date *int64 `json:"date"` // id // Required: true ID *int64 `json:"id"` // important // Required: true Important *bool `json:"important"` // number Number int64 `json:"number,omitempty"` // title // Required: true Title *string `json:"title"` }
AnnouncementNotification announcement notification swagger:model announcement_notification
func (*AnnouncementNotification) MarshalBinary ¶
func (m *AnnouncementNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AnnouncementNotification) UnmarshalBinary ¶
func (m *AnnouncementNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AskIv ¶
type AskIv float64
AskIv (Only for option) implied volatility for best ask swagger:model ask_iv
type AveragePrice ¶
type AveragePrice float64
AveragePrice Average fill price of the order swagger:model average_price
type BaseMessage ¶
type BaseMessage struct { // The id that was sent in the request ID int64 `json:"id,omitempty"` // The JSON-RPC version (2.0) // Enum: [2.0] Jsonrpc string `json:"jsonrpc,omitempty"` // false for production server, true for test server Testnet bool `json:"testnet,omitempty"` // Duration of the handling of the request, in microseconds UsDiff int64 `json:"usDiff,omitempty"` // The timestamp (in microseconds) of receipt of the request UsIn int64 `json:"usIn,omitempty"` // The timestamp (in microseconds) of sending of the response UsOut int64 `json:"usOut,omitempty"` }
BaseMessage base message swagger:model base_message
func (*BaseMessage) MarshalBinary ¶
func (m *BaseMessage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaseMessage) UnmarshalBinary ¶
func (m *BaseMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BestAskAmount ¶
type BestAskAmount float64
BestAskAmount It represents the requested order size of all best asks swagger:model best_ask_amount
type BestAskPrice ¶
type BestAskPrice float64
BestAskPrice The current best ask price, `null` if there aren't any asks swagger:model best_ask_price
type BestBidAmount ¶
type BestBidAmount float64
BestBidAmount It represents the requested order size of all best bids swagger:model best_bid_amount
type BestBidPrice ¶
type BestBidPrice float64
BestBidPrice The current best bid price, `null` if there aren't any bids swagger:model best_bid_price
type BidIv ¶
type BidIv float64
BidIv (Only for option) implied volatility for best bid swagger:model bid_iv
type BookNotification ¶
type BookNotification struct { // asks // Required: true Asks Asks `json:"asks"` // bids // Required: true Bids Bids `json:"bids"` // id of the notification // Required: true ChangeID *int64 `json:"change_id"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // timestamp Timestamp TimestampForBookNotifications `json:"timestamp,omitempty"` }
BookNotification book notification swagger:model book_notification
func (*BookNotification) MarshalBinary ¶
func (m *BookNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BookNotification) UnmarshalBinary ¶
func (m *BookNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BookNotificationRaw ¶
type BookNotificationRaw struct { // asks // Required: true Asks [][]interface{} `json:"asks"` // bids // Required: true Bids [][]interface{} `json:"bids"` // Identifier of the notification // Required: true ChangeID *int64 `json:"change_id"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // Identifier of the previous notification (it's **not** included for the first notification) PrevChangeID int64 `json:"prev_change_id,omitempty"` // timestamp Timestamp TimestampForBookNotifications `json:"timestamp,omitempty"` // Type of notification: `snapshot` for initial, `change` for others. The field is only included in aggregated response (when input parameter `interval` != `raw`) // Enum: [snapshot change] Type string `json:"type,omitempty"` }
BookNotificationRaw book notification raw swagger:model book_notification_raw
func (*BookNotificationRaw) MarshalBinary ¶
func (m *BookNotificationRaw) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BookNotificationRaw) UnmarshalBinary ¶
func (m *BookNotificationRaw) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BookState ¶
type BookState string
BookState The state of the order book. Possible values are `open` and `closed`. swagger:model book_state
type BookSummary ¶
type BookSummary struct { // The current best ask price, `null` if there aren't any asks // Required: true AskPrice *float64 `json:"ask_price"` // Base currency // Required: true BaseCurrency *string `json:"base_currency"` // The current best bid price, `null` if there aren't any bids // Required: true BidPrice *float64 `json:"bid_price"` // creation timestamp // Required: true CreationTimestamp Timestamp `json:"creation_timestamp"` // Current funding (perpetual only) CurrentFunding float64 `json:"current_funding,omitempty"` // Estimated delivery price, in USD. For more details, see Documentation > General > Expiration Price EstimatedDeliveryPrice float64 `json:"estimated_delivery_price,omitempty"` // Funding 8h (perpetual only) Funding8h float64 `json:"funding_8h,omitempty"` // Price of the 24h highest trade // Required: true High *float64 `json:"high"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // Interest rate used in implied volatility calculations (options only) InterestRate float64 `json:"interest_rate,omitempty"` // The price of the latest trade, `null` if there weren't any trades // Required: true Last *float64 `json:"last"` // Price of the 24h lowest trade, `null` if there weren't any trades // Required: true Low *float64 `json:"low"` // The current instrument market price // Required: true MarkPrice *float64 `json:"mark_price"` // The average of the best bid and ask, `null` if there aren't any asks or bids // Required: true MidPrice *float64 `json:"mid_price"` // The total amount of outstanding contracts in the corresponding amount units. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. // Required: true OpenInterest *float64 `json:"open_interest"` // Quote currency // Required: true QuoteCurrency *string `json:"quote_currency"` // Name of the underlying future, or `'index_price'` (options only) UnderlyingIndex string `json:"underlying_index,omitempty"` // underlying price for implied volatility calculations (options only) UnderlyingPrice float64 `json:"underlying_price,omitempty"` // The total 24h traded volume (in base currency) // Required: true Volume *float64 `json:"volume"` // Volume in usd (futures only) VolumeUsd float64 `json:"volume_usd,omitempty"` }
BookSummary book summary swagger:model book_summary
func (*BookSummary) MarshalBinary ¶
func (m *BookSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BookSummary) UnmarshalBinary ¶
func (m *BookSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Commission ¶
type Commission float64
Commission Commission paid so far (in base currency) swagger:model commission
type Continuation ¶
type Continuation string
Continuation Continuation token for pagination. swagger:model continuation
type ContractSize ¶
type ContractSize float64
ContractSize Contract size, for futures in USD, for options in BTC. swagger:model contract_size
type CurrencyAddress ¶
type CurrencyAddress string
CurrencyAddress Address in proper format for currency swagger:model currency_address
type CurrencyAmount ¶
type CurrencyAmount float64
CurrencyAmount Amount of funds in given currency swagger:model currency_amount
type CurrencyDetail ¶
type CurrencyDetail struct { // The type of the currency. // Required: true // Enum: [BITCOIN ETHER] CoinType *string `json:"coin_type"` // The abbreviation of the currency. This abbreviation is used elsewhere in the API to identify the currency. // Required: true Currency *string `json:"currency"` // The full name for the currency. // Required: true CurrencyLong *string `json:"currency_long"` // False if deposit address creation is disabled DisabledDepositAddressCreation bool `json:"disabled_deposit_address_creation,omitempty"` // fee precision FeePrecision int64 `json:"fee_precision,omitempty"` // Minimum number of block chain confirmations before deposit is accepted. // Required: true MinConfirmations *int64 `json:"min_confirmations"` // The minimum transaction fee paid for withdrawals MinWithdrawalFee float64 `json:"min_withdrawal_fee,omitempty"` // The total transaction fee paid for withdrawals // Required: true WithdrawalFee *float64 `json:"withdrawal_fee"` // withdrawal priorities WithdrawalPriorities []*KeyNumberPair `json:"withdrawal_priorities"` }
CurrencyDetail currency detail swagger:model currency_detail
func (*CurrencyDetail) MarshalBinary ¶
func (m *CurrencyDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CurrencyDetail) UnmarshalBinary ¶
func (m *CurrencyDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CurrencyPair ¶
type CurrencyPair string
CurrencyPair Currency pair: `"btc_usd"` or `"eth_usd"` swagger:model currency_pair
const ( // CurrencyPairBtcUsd captures enum value "btc_usd" CurrencyPairBtcUsd CurrencyPair = "btc_usd" // CurrencyPairEthUsd captures enum value "eth_usd" CurrencyPairEthUsd CurrencyPair = "eth_usd" )
type CurrencyPortfolio ¶
type CurrencyPortfolio struct { // available funds // Required: true AvailableFunds *float64 `json:"available_funds"` // available withdrawal funds // Required: true AvailableWithdrawalFunds *float64 `json:"available_withdrawal_funds"` // balance // Required: true Balance *float64 `json:"balance"` // currency // Required: true // Enum: [btc eth] Currency *string `json:"currency"` // equity // Required: true Equity *float64 `json:"equity"` // initial margin // Required: true InitialMargin *float64 `json:"initial_margin"` // maintenance margin // Required: true MaintenanceMargin *float64 `json:"maintenance_margin"` // margin balance // Required: true MarginBalance *float64 `json:"margin_balance"` }
CurrencyPortfolio currency portfolio swagger:model currency_portfolio
func (*CurrencyPortfolio) MarshalBinary ¶
func (m *CurrencyPortfolio) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CurrencyPortfolio) UnmarshalBinary ¶
func (m *CurrencyPortfolio) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CurrencyTransactionID ¶
type CurrencyTransactionID string
CurrencyTransactionID Transaction id in proper format for currency, `null` if id is not available swagger:model currency_transaction_id
type CurrencyWithAny ¶
type CurrencyWithAny string
CurrencyWithAny Currency, i.e `"BTC"`, `"ETH"` or `"any"` if don't care swagger:model currency_with_any
const ( // CurrencyWithAnyBTC captures enum value "BTC" CurrencyWithAnyBTC CurrencyWithAny = "BTC" // CurrencyWithAnyETH captures enum value "ETH" CurrencyWithAnyETH CurrencyWithAny = "ETH" // CurrencyWithAnyAny captures enum value "any" CurrencyWithAnyAny CurrencyWithAny = "any" )
type CurrentFunding ¶
type CurrentFunding float64
CurrentFunding Current funding (perpetual only) swagger:model current_funding
type DeliveryPrice ¶
type DeliveryPrice float64
DeliveryPrice The settlement price for the instrument. Only when `state = closed` swagger:model delivery_price
type Deposit ¶
type Deposit struct { // address // Required: true Address CurrencyAddress `json:"address"` // amount // Required: true Amount CurrencyAmount `json:"amount"` // currency // Required: true Currency Currency `json:"currency"` // received timestamp // Required: true ReceivedTimestamp Timestamp `json:"received_timestamp"` // state // Required: true State DepositState `json:"state"` // transaction id // Required: true TransactionID CurrencyTransactionID `json:"transaction_id"` // updated timestamp // Required: true UpdatedTimestamp Timestamp `json:"updated_timestamp"` }
Deposit deposit swagger:model deposit
func (*Deposit) MarshalBinary ¶
MarshalBinary interface implementation
func (*Deposit) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DepositState ¶
type DepositState string
DepositState Deposit state, allowed values : `pending`, `completed`, `rejected`, `replaced` swagger:model deposit_state
const ( // DepositStatePending captures enum value "pending" DepositStatePending DepositState = "pending" // DepositStateCompleted captures enum value "completed" DepositStateCompleted DepositState = "completed" // DepositStateRejected captures enum value "rejected" DepositStateRejected DepositState = "rejected" // DepositStateReplaced captures enum value "replaced" DepositStateReplaced DepositState = "replaced" )
type DeribitPriceIndexNotification ¶
type DeribitPriceIndexNotification struct { // index name // Required: true IndexName IndexName `json:"index_name"` // price // Required: true Price IndexPrice `json:"price"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` }
DeribitPriceIndexNotification deribit price index notification swagger:model deribit_price_index_notification
func (*DeribitPriceIndexNotification) MarshalBinary ¶
func (m *DeribitPriceIndexNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeribitPriceIndexNotification) UnmarshalBinary ¶
func (m *DeribitPriceIndexNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeribitPriceRankingNotification ¶
type DeribitPriceRankingNotification []*DeribitPriceRankingNotificationItems0
DeribitPriceRankingNotification deribit price ranking notification swagger:model deribit_price_ranking_notification
type DeribitPriceRankingNotificationItems0 ¶
type DeribitPriceRankingNotificationItems0 struct { // Stock exchange status Enabled bool `json:"enabled,omitempty"` // Stock exchange identifier Identifier string `json:"identifier,omitempty"` // Stock exchange index price Price float64 `json:"price,omitempty"` // The timestamp of the last update from stock exchange Timestamp int64 `json:"timestamp,omitempty"` // The weight of the ranking given in percent Weight float64 `json:"weight,omitempty"` }
DeribitPriceRankingNotificationItems0 deribit price ranking notification items0 swagger:model DeribitPriceRankingNotificationItems0
func (*DeribitPriceRankingNotificationItems0) MarshalBinary ¶
func (m *DeribitPriceRankingNotificationItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeribitPriceRankingNotificationItems0) UnmarshalBinary ¶
func (m *DeribitPriceRankingNotificationItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ErrorMessage ¶
type ErrorMessage struct { BaseMessage // error // Required: true Error *int64 `json:"error"` // message // Required: true Message *string `json:"message"` }
ErrorMessage error message swagger:model error_message
func (*ErrorMessage) MarshalBinary ¶
func (m *ErrorMessage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ErrorMessage) MarshalJSON ¶
func (m ErrorMessage) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*ErrorMessage) UnmarshalBinary ¶
func (m *ErrorMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ErrorMessage) UnmarshalJSON ¶
func (m *ErrorMessage) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type EstimatedExpirationPriceNotification ¶
type EstimatedExpirationPriceNotification struct { // When `true` then prize is given as an estimated value, otherwise it's current index price // Required: true IsEstimated *bool `json:"is_estimated"` // Index current or estimated price // Required: true Price *float64 `json:"price"` // Number of seconds till finalizing the nearest instrument // Required: true Seconds *int64 `json:"seconds"` }
EstimatedExpirationPriceNotification estimated expiration price notification swagger:model estimated_expiration_price_notification
func (*EstimatedExpirationPriceNotification) MarshalBinary ¶
func (m *EstimatedExpirationPriceNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*EstimatedExpirationPriceNotification) UnmarshalBinary ¶
func (m *EstimatedExpirationPriceNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FilledAmount ¶
type FilledAmount float64
FilledAmount Filled amount of the order. For perpetual and futures the filled_amount is in USD units, for options - in units or corresponding cryptocurrency contracts, e.g., BTC or ETH. swagger:model filled_amount
type Funding8h ¶
type Funding8h float64
Funding8h Funding 8h (perpetual only) swagger:model funding_8h
type Greeks ¶
type Greeks struct { // (Only for option) The delta value for the option // Required: true Delta *float64 `json:"delta"` // (Only for option) The gamma value for the option // Required: true Gamma *float64 `json:"gamma"` // (Only for option) The rho value for the option // Required: true Rho *float64 `json:"rho"` // (Only for option) The theta value for the option // Required: true Theta *float64 `json:"theta"` // (Only for option) The vega value for the option // Required: true Vega *float64 `json:"vega"` }
Greeks Only for options swagger:model greeks
func (*Greeks) MarshalBinary ¶
MarshalBinary interface implementation
func (*Greeks) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ImpliedVolatility ¶
type ImpliedVolatility float64
ImpliedVolatility Value of the volatility of the underlying instrument swagger:model implied_volatility
type Implv ¶
type Implv float64
Implv Implied volatility in percent. (Only if `advanced="implv"`) swagger:model implv
type IndexName ¶
type IndexName string
IndexName Index identifier, matches (base) cryptocurrency with quote currency swagger:model index_name
type Instrument ¶
type Instrument struct { // The underlying currency being traded. // Required: true // Enum: [BTC ETH] BaseCurrency *string `json:"base_currency"` // Contract size for instrument // Required: true ContractSize *float64 `json:"contract_size"` // The time when the instrument was first created (milliseconds) // Required: true CreationTimestamp *int64 `json:"creation_timestamp"` // The time when the instrument will expire (milliseconds) // Required: true ExpirationTimestamp *int64 `json:"expiration_timestamp"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // Indicates if the instrument can currently be traded. // Required: true IsActive *bool `json:"is_active"` // kind // Required: true Kind Kind `json:"kind"` // Minimum amount for trading. For perpetual and futures - in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. // Required: true MinTradeAmount *float64 `json:"min_trade_amount"` // The option type (only for options) // Enum: [call put] OptionType string `json:"option_type,omitempty"` // The currency in which the instrument prices are quoted. // Required: true // Enum: [USD] QuoteCurrency *string `json:"quote_currency"` // The settlement period. // Required: true // Enum: [month week perpetual] SettlementPeriod *string `json:"settlement_period"` // The strike value. (only for options) Strike float64 `json:"strike,omitempty"` // specifies minimal price change and, as follows, the number of decimal places for instrument prices // Required: true TickSize *float64 `json:"tick_size"` }
Instrument instrument swagger:model instrument
func (*Instrument) MarshalBinary ¶
func (m *Instrument) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Instrument) UnmarshalBinary ¶
func (m *Instrument) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type InstrumentName ¶
type InstrumentName string
InstrumentName Unique instrument identifier swagger:model instrument_name
type InterestRate ¶
type InterestRate float64
InterestRate Interest rate used in implied volatility calculations (options only) swagger:model interest_rate
type KeyNumberPair ¶
type KeyNumberPair struct { // name // Required: true Name *string `json:"name"` // value // Required: true Value *float64 `json:"value"` }
KeyNumberPair key number pair swagger:model key_number_pair
func (*KeyNumberPair) MarshalBinary ¶
func (m *KeyNumberPair) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*KeyNumberPair) UnmarshalBinary ¶
func (m *KeyNumberPair) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type KindWithAny ¶
type KindWithAny string
KindWithAny Instrument kind, `"future"` or `"option"` or `"any"` if don't care swagger:model kind_with_any
const ( // KindWithAnyFuture captures enum value "future" KindWithAnyFuture KindWithAny = "future" // KindWithAnyOption captures enum value "option" KindWithAnyOption KindWithAny = "option" // KindWithAnyAny captures enum value "any" KindWithAnyAny KindWithAny = "any" )
type LastPrice ¶
type LastPrice float64
LastPrice The price for the last trade swagger:model last_price
type MarkIv ¶
type MarkIv float64
MarkIv (Only for option) implied volatility for mark price swagger:model mark_iv
type MarkPrice ¶
type MarkPrice float64
MarkPrice The mark price for the instrument swagger:model mark_price
type MarkpriceOptionsNotification ¶
type MarkpriceOptionsNotification []*MarkpriceOptionsNotificationItems0
MarkpriceOptionsNotification markprice options notification swagger:model markprice_options_notification
type MarkpriceOptionsNotificationItems0 ¶
type MarkpriceOptionsNotificationItems0 struct { // instrument name InstrumentName InstrumentName `json:"instrument_name,omitempty"` // iv Iv ImpliedVolatility `json:"iv,omitempty"` // mark price MarkPrice MarkPrice `json:"mark_price,omitempty"` }
MarkpriceOptionsNotificationItems0 markprice options notification items0 swagger:model MarkpriceOptionsNotificationItems0
func (*MarkpriceOptionsNotificationItems0) MarshalBinary ¶
func (m *MarkpriceOptionsNotificationItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MarkpriceOptionsNotificationItems0) UnmarshalBinary ¶
func (m *MarkpriceOptionsNotificationItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MaxPrice ¶
type MaxPrice float64
MaxPrice The maximum price for the future. Any buy orders you submit higher than this price, will be clamped to this maximum. swagger:model max_price
type MaxShow ¶
type MaxShow float64
MaxShow Maximum amount within an order to be shown to other traders, 0 for invisible order. swagger:model max_show
type MinPrice ¶
type MinPrice float64
MinPrice The minimum price for the future. Any sell orders you submit lower than this price will be clamped to this minimum. swagger:model min_price
type OkResponse ¶
type OkResponse struct { BaseMessage // Result of method execution. `ok` in case of success // Required: true // Enum: [ok] Result *string `json:"result"` }
OkResponse ok response swagger:model ok_response
func (*OkResponse) MarshalBinary ¶
func (m *OkResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (OkResponse) MarshalJSON ¶
func (m OkResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*OkResponse) UnmarshalBinary ¶
func (m *OkResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*OkResponse) UnmarshalJSON ¶
func (m *OkResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type OpenInterest ¶
type OpenInterest float64
OpenInterest The total amount of outstanding contracts in the corresponding amount units. For perpetual and futures the amount is in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. swagger:model open_interest
type Order ¶
type Order struct { // advanced Advanced Advanced `json:"advanced,omitempty"` // amount Amount Amount `json:"amount,omitempty"` // api // Required: true API API `json:"api"` // average price AveragePrice AveragePrice `json:"average_price,omitempty"` // commission Commission Commission `json:"commission,omitempty"` // creation timestamp // Required: true CreationTimestamp Timestamp `json:"creation_timestamp"` // direction // Required: true Direction Direction `json:"direction"` // filled amount FilledAmount FilledAmount `json:"filled_amount,omitempty"` // implv Implv Implv `json:"implv,omitempty"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // `true` if order was automatically created during liquidation // Required: true IsLiquidation *bool `json:"is_liquidation"` // label // Required: true Label Label `json:"label"` // last update timestamp // Required: true LastUpdateTimestamp Timestamp `json:"last_update_timestamp"` // max show // Required: true MaxShow MaxShow `json:"max_show"` // order id // Required: true OrderID OrderID `json:"order_id"` // order state // Required: true OrderState OrderState `json:"order_state"` // order type // Required: true OrderType OrderType `json:"order_type"` // original order type OriginalOrderType OriginalOrderType `json:"original_order_type,omitempty"` // post only // Required: true PostOnly PostOnly `json:"post_only"` // price // Required: true Price Price `json:"price"` // profit loss ProfitLoss ProfitLoss `json:"profit_loss,omitempty"` // reduce only ReduceOnly ReduceOnly `json:"reduce_only,omitempty"` // stop price StopPrice StopPrice `json:"trigger_price,omitempty"` // time in force // Required: true TimeInForce TimeInForce `json:"time_in_force"` // trigger Trigger Trigger `json:"trigger,omitempty"` // triggered Triggered Triggered `json:"triggered,omitempty"` // usd Usd Usd `json:"usd,omitempty"` }
Order order swagger:model order
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OrderIDInitialMarginPair ¶
type OrderIDInitialMarginPair struct { // Initial margin of order, in base currency // Required: true InitialMargin *float64 `json:"initial_margin"` // order id // Required: true OrderID OrderID `json:"order_id"` }
OrderIDInitialMarginPair order id initial margin pair swagger:model order_id_initial_margin_pair
func (*OrderIDInitialMarginPair) MarshalBinary ¶
func (m *OrderIDInitialMarginPair) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderIDInitialMarginPair) UnmarshalBinary ¶
func (m *OrderIDInitialMarginPair) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderState ¶
type OrderState string
OrderState order state, `"open"`, `"filled"`, `"rejected"`, `"cancelled"`, `"untriggered"` swagger:model order_state
const ( // OrderStateOpen captures enum value "open" OrderStateOpen OrderState = "open" // OrderStateFilled captures enum value "filled" OrderStateFilled OrderState = "filled" // OrderStateRejected captures enum value "rejected" OrderStateRejected OrderState = "rejected" // OrderStateCancelled captures enum value "cancelled" OrderStateCancelled OrderState = "cancelled" // OrderStateUntriggered captures enum value "untriggered" OrderStateUntriggered OrderState = "untriggered" // OrderStateTriggered captures enum value "triggered" OrderStateTriggered OrderState = "triggered" )
type OrderStateInUserTrade ¶
type OrderStateInUserTrade string
OrderStateInUserTrade order state, `"open"`, `"filled"`, `"rejected"`, `"cancelled"`, `"untriggered"` or `"archive"` (if order was archived) swagger:model order_state_in_user_trade
const ( // OrderStateInUserTradeOpen captures enum value "open" OrderStateInUserTradeOpen OrderStateInUserTrade = "open" // OrderStateInUserTradeFilled captures enum value "filled" OrderStateInUserTradeFilled OrderStateInUserTrade = "filled" // OrderStateInUserTradeRejected captures enum value "rejected" OrderStateInUserTradeRejected OrderStateInUserTrade = "rejected" // OrderStateInUserTradeCancelled captures enum value "cancelled" OrderStateInUserTradeCancelled OrderStateInUserTrade = "cancelled" // OrderStateInUserTradeUntriggered captures enum value "untriggered" OrderStateInUserTradeUntriggered OrderStateInUserTrade = "untriggered" // OrderStateInUserTradeArchive captures enum value "archive" OrderStateInUserTradeArchive OrderStateInUserTrade = "archive" )
type OrderType ¶
type OrderType string
OrderType order type, `"limit"`, `"market"`, `"stop_limit"`, `"stop_market"` swagger:model order_type
const ( // OrderTypeMarket captures enum value "market" OrderTypeMarket OrderType = "market" // OrderTypeLimit captures enum value "limit" OrderTypeLimit OrderType = "limit" // OrderTypeStopMarket captures enum value "stop_market" OrderTypeStopMarket OrderType = "stop_market" // OrderTypeStopLimit captures enum value "stop_limit" OrderTypeStopLimit OrderType = "stop_limit" )
type OrderType2 ¶
type OrderType2 string
OrderType2 Order type, `"all"`, `"limit"`, `"stop_all"`, `"stop_limit"` or `"stop_market"` swagger:model order_type2
const ( // OrderType2All captures enum value "all" OrderType2All OrderType2 = "all" // OrderType2Limit captures enum value "limit" OrderType2Limit OrderType2 = "limit" // OrderType2StopAll captures enum value "stop_all" OrderType2StopAll OrderType2 = "stop_all" // OrderType2StopLimit captures enum value "stop_limit" OrderType2StopLimit OrderType2 = "stop_limit" // OrderType2StopMarket captures enum value "stop_market" OrderType2StopMarket OrderType2 = "stop_market" )
type OriginalOrderType ¶
type OriginalOrderType string
OriginalOrderType Original order type. Optional field swagger:model original_order_type
const ( // OriginalOrderTypeMarket captures enum value "market" OriginalOrderTypeMarket OriginalOrderType = "market" )
type PerpetualNotification ¶
type PerpetualNotification struct { // Current interest // Required: true Interest *float64 `json:"interest"` }
PerpetualNotification perpetual notification swagger:model perpetual_notification
func (*PerpetualNotification) MarshalBinary ¶
func (m *PerpetualNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PerpetualNotification) UnmarshalBinary ¶
func (m *PerpetualNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Portfolio ¶
type Portfolio struct { // btc // Required: true Btc *CurrencyPortfolio `json:"btc"` // eth // Required: true Eth *CurrencyPortfolio `json:"eth"` }
Portfolio portfolio swagger:model portfolio
func (*Portfolio) MarshalBinary ¶
MarshalBinary interface implementation
func (*Portfolio) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Position ¶
type Position struct { // Average price of trades that built this position // Required: true AveragePrice *float64 `json:"average_price"` // Only for options, average price in USD AveragePriceUsd float64 `json:"average_price_usd,omitempty"` // Delta parameter // Required: true Delta *float64 `json:"delta"` // direction // Required: true Direction Direction `json:"direction"` // Only for futures, estimated liquidation price EstimatedLiquidationPrice float64 `json:"estimated_liquidation_price,omitempty"` // Floating profit or loss // Required: true FloatingProfitLoss *float64 `json:"floating_profit_loss"` // Only for options, floating profit or loss in USD FloatingProfitLossUsd float64 `json:"floating_profit_loss_usd,omitempty"` // Current index price // Required: true IndexPrice *float64 `json:"index_price"` // Initial margin // Required: true InitialMargin *float64 `json:"initial_margin"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // kind // Required: true Kind Kind `json:"kind"` // Maintenance margin // Required: true MaintenanceMargin *float64 `json:"maintenance_margin"` // Current mark price for position's instrument // Required: true MarkPrice *float64 `json:"mark_price"` // Open orders margin // Required: true OpenOrdersMargin *float64 `json:"open_orders_margin"` // Realized profit or loss // Required: true RealizedProfitLoss *float64 `json:"realized_profit_loss"` // Last settlement price for position's instrument 0 if instrument wasn't settled yet // Required: true SettlementPrice *float64 `json:"settlement_price"` // Position size for futures size in quote currency (e.g. USD), for options size is in base currency (e.g. BTC) // Required: true Size *float64 `json:"size"` // Only for futures, position size in base currency SizeCurrency float64 `json:"size_currency,omitempty"` // Profit or loss from position // Required: true TotalProfitLoss *float64 `json:"total_profit_loss"` }
Position position swagger:model position
func (*Position) MarshalBinary ¶
MarshalBinary interface implementation
func (*Position) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PostOnly ¶
type PostOnly bool
PostOnly `true` for post-only orders only swagger:model post_only
type PrivateAccountResponse ¶
type PrivateAccountResponse struct { // result // Required: true Result *PrivateAccountResponseResult `json:"result"` }
PrivateAccountResponse private account response swagger:model private_account_response
func (*PrivateAccountResponse) MarshalBinary ¶
func (m *PrivateAccountResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateAccountResponse) UnmarshalBinary ¶
func (m *PrivateAccountResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateAccountResponseResult ¶
type PrivateAccountResponseResult struct { // The account's available funds // Required: true AvailableFunds *float64 `json:"available_funds"` // The account's available to withdrawal funds // Required: true AvailableWithdrawalFunds *float64 `json:"available_withdrawal_funds"` // The account's balance // Required: true Balance *float64 `json:"balance"` // The selected currency // Required: true Currency *string `json:"currency"` // The sum of position deltas // Required: true DeltaTotal *float64 `json:"delta_total"` // The deposit address for the account (if available) DepositAddress string `json:"deposit_address,omitempty"` // User email (available when parameter `extended` = `true`) // Required: true Email *string `json:"email"` // The account's current equity // Required: true Equity *float64 `json:"equity"` // Futures profit and Loss // Required: true FuturesPl *float64 `json:"futures_pl"` // Futures session realized profit and Loss // Required: true FuturesSessionRpl *float64 `json:"futures_session_rpl"` // Futures session unrealized profit and Loss // Required: true FuturesSessionUpl *float64 `json:"futures_session_upl"` // Account id (available when parameter `extended` = `true`) // Required: true ID *int64 `json:"id"` // The account's initial margin // Required: true InitialMargin *float64 `json:"initial_margin"` // The maintenance margin. // Required: true MaintenanceMargin *float64 `json:"maintenance_margin"` // The account's margin balance MarginBalance float64 `json:"margin_balance,omitempty"` // Options summary delta // Required: true OptionsDelta *float64 `json:"options_delta"` // Options summary gamma // Required: true OptionsGamma *float64 `json:"options_gamma"` // Options profit and Loss // Required: true OptionsPl *float64 `json:"options_pl"` // Options session realized profit and Loss // Required: true OptionsSessionRpl *float64 `json:"options_session_rpl"` // Options session unrealized profit and Loss // Required: true OptionsSessionUpl *float64 `json:"options_session_upl"` // Options summary theta // Required: true OptionsTheta *float64 `json:"options_theta"` // Options summary vega // Required: true OptionsVega *float64 `json:"options_vega"` // `true` when portfolio margining is enabled for user PortfolioMarginingEnabled bool `json:"portfolio_margining_enabled,omitempty"` // Projected initial margin (for portfolio margining users) ProjectedInitialMargin float64 `json:"projected_initial_margin,omitempty"` // Projected maintenance margin (for portfolio margining users) ProjectedMaintenanceMargin float64 `json:"projected_maintenance_margin,omitempty"` // Session funding // Required: true SessionFunding *float64 `json:"session_funding"` // Session realized profit and loss // Required: true SessionRpl *float64 `json:"session_rpl"` // Session unrealized profit and loss // Required: true SessionUpl *float64 `json:"session_upl"` // System generated user nickname (available when parameter `extended` = `true`) // Required: true SystemName *string `json:"system_name"` // Whether two factor authentication is enabled (available when parameter `extended` = `true`) // Required: true TfaEnabled *bool `json:"tfa_enabled"` // Profit and loss // Required: true TotalPl *float64 `json:"total_pl"` // Account type (available when parameter `extended` = `true`) // Required: true // Enum: [main subaccount] Type *string `json:"type"` // Account name (given by user) (available when parameter `extended` = `true`) // Required: true Username *string `json:"username"` }
PrivateAccountResponseResult private account response result swagger:model PrivateAccountResponseResult
func (*PrivateAccountResponseResult) MarshalBinary ¶
func (m *PrivateAccountResponseResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateAccountResponseResult) UnmarshalBinary ¶
func (m *PrivateAccountResponseResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateAddToAddressBookResponse ¶
type PrivateAddToAddressBookResponse struct { BaseMessage // result // Required: true Result *AddressBookItem `json:"result"` }
PrivateAddToAddressBookResponse private add to address book response swagger:model private_add_to_address_book_response
func (*PrivateAddToAddressBookResponse) MarshalBinary ¶
func (m *PrivateAddToAddressBookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateAddToAddressBookResponse) MarshalJSON ¶
func (m PrivateAddToAddressBookResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateAddToAddressBookResponse) UnmarshalBinary ¶
func (m *PrivateAddToAddressBookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateAddToAddressBookResponse) UnmarshalJSON ¶
func (m *PrivateAddToAddressBookResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateAddressBookResponse ¶
type PrivateAddressBookResponse struct { BaseMessage // result // Required: true Result []*AddressBookItem `json:"result"` }
PrivateAddressBookResponse private address book response swagger:model private_address_book_response
func (*PrivateAddressBookResponse) MarshalBinary ¶
func (m *PrivateAddressBookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateAddressBookResponse) MarshalJSON ¶
func (m PrivateAddressBookResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateAddressBookResponse) UnmarshalBinary ¶
func (m *PrivateAddressBookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateAddressBookResponse) UnmarshalJSON ¶
func (m *PrivateAddressBookResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateBuyAndSellResponse ¶
type PrivateBuyAndSellResponse struct { BaseMessage // result // Required: true Result *PrivateBuyAndSellResponseAO1Result `json:"result"` }
PrivateBuyAndSellResponse private buy and sell response swagger:model private_buy_and_sell_response
func (*PrivateBuyAndSellResponse) MarshalBinary ¶
func (m *PrivateBuyAndSellResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateBuyAndSellResponse) MarshalJSON ¶
func (m PrivateBuyAndSellResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateBuyAndSellResponse) UnmarshalBinary ¶
func (m *PrivateBuyAndSellResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateBuyAndSellResponse) UnmarshalJSON ¶
func (m *PrivateBuyAndSellResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateBuyAndSellResponseAO1Result ¶
type PrivateBuyAndSellResponseAO1Result struct { // order // Required: true Order *Order `json:"order"` // trades // Required: true Trades []*UserTrade `json:"trades"` }
PrivateBuyAndSellResponseAO1Result private buy and sell response a o1 result swagger:model PrivateBuyAndSellResponseAO1Result
func (*PrivateBuyAndSellResponseAO1Result) MarshalBinary ¶
func (m *PrivateBuyAndSellResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateBuyAndSellResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateBuyAndSellResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateCancelAllResponse ¶
type PrivateCancelAllResponse struct { BaseMessage PrivateCancelAllResponseAllOf1 // Total number of successfully cancelled orders // Required: true Result *float64 `json:"result"` }
PrivateCancelAllResponse private cancel all response swagger:model private_cancel_all_response
func (*PrivateCancelAllResponse) MarshalBinary ¶
func (m *PrivateCancelAllResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateCancelAllResponse) MarshalJSON ¶
func (m PrivateCancelAllResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateCancelAllResponse) UnmarshalBinary ¶
func (m *PrivateCancelAllResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateCancelAllResponse) UnmarshalJSON ¶
func (m *PrivateCancelAllResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateCancelAllResponseAllOf1 ¶
type PrivateCancelAllResponseAllOf1 interface{}
PrivateCancelAllResponseAllOf1 private cancel all response all of1 swagger:model PrivateCancelAllResponseAllOf1
type PrivateCancelResponse ¶
type PrivateCancelResponse struct { BaseMessage // result // Required: true Result *Order `json:"result"` }
PrivateCancelResponse private cancel response swagger:model private_cancel_response
func (*PrivateCancelResponse) MarshalBinary ¶
func (m *PrivateCancelResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateCancelResponse) MarshalJSON ¶
func (m PrivateCancelResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateCancelResponse) UnmarshalBinary ¶
func (m *PrivateCancelResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateCancelResponse) UnmarshalJSON ¶
func (m *PrivateCancelResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateCreateSubaccountResponse ¶
type PrivateCreateSubaccountResponse struct { BaseMessage // result // Required: true Result *PrivateCreateSubaccountResponseAO1Result `json:"result"` }
PrivateCreateSubaccountResponse private create subaccount response swagger:model private_create_subaccount_response
func (*PrivateCreateSubaccountResponse) MarshalBinary ¶
func (m *PrivateCreateSubaccountResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateCreateSubaccountResponse) MarshalJSON ¶
func (m PrivateCreateSubaccountResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateCreateSubaccountResponse) UnmarshalBinary ¶
func (m *PrivateCreateSubaccountResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateCreateSubaccountResponse) UnmarshalJSON ¶
func (m *PrivateCreateSubaccountResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateCreateSubaccountResponseAO1Result ¶
type PrivateCreateSubaccountResponseAO1Result struct { // User email // Required: true Email *string `json:"email"` // Subaccount identifier // Required: true ID *int64 `json:"id"` // `true` when password for the subaccount has been configured // Required: true IsPassword *bool `json:"is_password"` // Informs whether login to the subaccount is enabled // Required: true LoginEnabled *bool `json:"login_enabled"` // portfolio Portfolio *Portfolio `json:"portfolio,omitempty"` // When `true` - receive all notification emails on the main email // Required: true ReceiveNotifications *bool `json:"receive_notifications"` // System generated user nickname // Required: true SystemName *string `json:"system_name"` // Whether the two factor authentication is enabled // Required: true TfaEnabled *bool `json:"tfa_enabled"` // Account type // Required: true // Enum: [subaccount] Type *string `json:"type"` // Account name (given by user) // Required: true Username *string `json:"username"` }
PrivateCreateSubaccountResponseAO1Result private create subaccount response a o1 result swagger:model PrivateCreateSubaccountResponseAO1Result
func (*PrivateCreateSubaccountResponseAO1Result) MarshalBinary ¶
func (m *PrivateCreateSubaccountResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateCreateSubaccountResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateCreateSubaccountResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateDepositAddressResponse ¶
type PrivateDepositAddressResponse struct { BaseMessage // result // Required: true Result *PrivateDepositAddressResponseAO1Result `json:"result"` }
PrivateDepositAddressResponse private deposit address response swagger:model private_deposit_address_response
func (*PrivateDepositAddressResponse) MarshalBinary ¶
func (m *PrivateDepositAddressResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateDepositAddressResponse) MarshalJSON ¶
func (m PrivateDepositAddressResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateDepositAddressResponse) UnmarshalBinary ¶
func (m *PrivateDepositAddressResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateDepositAddressResponse) UnmarshalJSON ¶
func (m *PrivateDepositAddressResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateDepositAddressResponseAO1Result ¶
type PrivateDepositAddressResponseAO1Result struct { // address // Required: true Address CurrencyAddress `json:"address"` // creation timestamp // Required: true CreationTimestamp Timestamp `json:"creation_timestamp"` // currency // Required: true Currency Currency `json:"currency"` // type // Required: true Type WalletAddressType `json:"type"` }
PrivateDepositAddressResponseAO1Result Object if address is created, null otherwise swagger:model PrivateDepositAddressResponseAO1Result
func (*PrivateDepositAddressResponseAO1Result) MarshalBinary ¶
func (m *PrivateDepositAddressResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateDepositAddressResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateDepositAddressResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateEditResponse ¶
type PrivateEditResponse struct { BaseMessage // result // Required: true Result *PrivateEditResponseAO1Result `json:"result"` }
PrivateEditResponse private edit response swagger:model private_edit_response
func (*PrivateEditResponse) MarshalBinary ¶
func (m *PrivateEditResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateEditResponse) MarshalJSON ¶
func (m PrivateEditResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateEditResponse) UnmarshalBinary ¶
func (m *PrivateEditResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateEditResponse) UnmarshalJSON ¶
func (m *PrivateEditResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateEditResponseAO1Result ¶
type PrivateEditResponseAO1Result struct { // order // Required: true Order *Order `json:"order"` // trades // Required: true Trades []*UserTrade `json:"trades"` }
PrivateEditResponseAO1Result private edit response a o1 result swagger:model PrivateEditResponseAO1Result
func (*PrivateEditResponseAO1Result) MarshalBinary ¶
func (m *PrivateEditResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateEditResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateEditResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetDepositsResponse ¶
type PrivateGetDepositsResponse struct { BaseMessage // result // Required: true Result *PrivateGetDepositsResponseAO1Result `json:"result"` }
PrivateGetDepositsResponse private get deposits response swagger:model private_get_deposits_response
func (*PrivateGetDepositsResponse) MarshalBinary ¶
func (m *PrivateGetDepositsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetDepositsResponse) MarshalJSON ¶
func (m PrivateGetDepositsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetDepositsResponse) UnmarshalBinary ¶
func (m *PrivateGetDepositsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetDepositsResponse) UnmarshalJSON ¶
func (m *PrivateGetDepositsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetDepositsResponseAO1Result ¶
type PrivateGetDepositsResponseAO1Result struct { // count // Required: true Count ResultCount `json:"count"` // data // Required: true Data []*Deposit `json:"data"` }
PrivateGetDepositsResponseAO1Result private get deposits response a o1 result swagger:model PrivateGetDepositsResponseAO1Result
func (*PrivateGetDepositsResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetDepositsResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetDepositsResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetDepositsResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetEmailLanguageResponse ¶
type PrivateGetEmailLanguageResponse struct { BaseMessage // The abbreviation of the language // Required: true Result *string `json:"result"` }
PrivateGetEmailLanguageResponse private get email language response swagger:model private_get_email_language_response
func (*PrivateGetEmailLanguageResponse) MarshalBinary ¶
func (m *PrivateGetEmailLanguageResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetEmailLanguageResponse) MarshalJSON ¶
func (m PrivateGetEmailLanguageResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetEmailLanguageResponse) UnmarshalBinary ¶
func (m *PrivateGetEmailLanguageResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetEmailLanguageResponse) UnmarshalJSON ¶
func (m *PrivateGetEmailLanguageResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetMarginsResponse ¶
type PrivateGetMarginsResponse struct { BaseMessage // result // Required: true Result *PrivateGetMarginsResponseAO1Result `json:"result"` }
PrivateGetMarginsResponse private get margins response swagger:model private_get_margins_response
func (*PrivateGetMarginsResponse) MarshalBinary ¶
func (m *PrivateGetMarginsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetMarginsResponse) MarshalJSON ¶
func (m PrivateGetMarginsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetMarginsResponse) UnmarshalBinary ¶
func (m *PrivateGetMarginsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetMarginsResponse) UnmarshalJSON ¶
func (m *PrivateGetMarginsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetMarginsResponseAO1Result ¶
type PrivateGetMarginsResponseAO1Result struct { // Margin when buying // Required: true Buy *float64 `json:"buy"` // max price // Required: true MaxPrice MaxPrice `json:"max_price"` // min price // Required: true MinPrice MinPrice `json:"min_price"` // Margin when selling // Required: true Sell *float64 `json:"sell"` }
PrivateGetMarginsResponseAO1Result private get margins response a o1 result swagger:model PrivateGetMarginsResponseAO1Result
func (*PrivateGetMarginsResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetMarginsResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetMarginsResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetMarginsResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetOpenOrdersResponse ¶
type PrivateGetOpenOrdersResponse struct { BaseMessage // result // Required: true Result []*Order `json:"result"` }
PrivateGetOpenOrdersResponse private get open orders response swagger:model private_get_open_orders_response
func (*PrivateGetOpenOrdersResponse) MarshalBinary ¶
func (m *PrivateGetOpenOrdersResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetOpenOrdersResponse) MarshalJSON ¶
func (m PrivateGetOpenOrdersResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetOpenOrdersResponse) UnmarshalBinary ¶
func (m *PrivateGetOpenOrdersResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetOpenOrdersResponse) UnmarshalJSON ¶
func (m *PrivateGetOpenOrdersResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetOrderHistoryResponse ¶
type PrivateGetOrderHistoryResponse struct { BaseMessage // result // Required: true Result []*Order `json:"result"` }
PrivateGetOrderHistoryResponse private get order history response swagger:model private_get_order_history_response
func (*PrivateGetOrderHistoryResponse) MarshalBinary ¶
func (m *PrivateGetOrderHistoryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetOrderHistoryResponse) MarshalJSON ¶
func (m PrivateGetOrderHistoryResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetOrderHistoryResponse) UnmarshalBinary ¶
func (m *PrivateGetOrderHistoryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetOrderHistoryResponse) UnmarshalJSON ¶
func (m *PrivateGetOrderHistoryResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetOrderMarginByIdsResponse ¶
type PrivateGetOrderMarginByIdsResponse struct { BaseMessage // result // Required: true Result []*OrderIDInitialMarginPair `json:"result"` }
PrivateGetOrderMarginByIdsResponse private get order margin by ids response swagger:model private_get_order_margin_by_ids_response
func (*PrivateGetOrderMarginByIdsResponse) MarshalBinary ¶
func (m *PrivateGetOrderMarginByIdsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetOrderMarginByIdsResponse) MarshalJSON ¶
func (m PrivateGetOrderMarginByIdsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetOrderMarginByIdsResponse) UnmarshalBinary ¶
func (m *PrivateGetOrderMarginByIdsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetOrderMarginByIdsResponse) UnmarshalJSON ¶
func (m *PrivateGetOrderMarginByIdsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetOrderStateResponse ¶
type PrivateGetOrderStateResponse struct { BaseMessage // result // Required: true Result *Order `json:"result"` }
PrivateGetOrderStateResponse private get order state response swagger:model private_get_order_state_response
func (*PrivateGetOrderStateResponse) MarshalBinary ¶
func (m *PrivateGetOrderStateResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetOrderStateResponse) MarshalJSON ¶
func (m PrivateGetOrderStateResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetOrderStateResponse) UnmarshalBinary ¶
func (m *PrivateGetOrderStateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetOrderStateResponse) UnmarshalJSON ¶
func (m *PrivateGetOrderStateResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetPositionResponse ¶
type PrivateGetPositionResponse struct { BaseMessage // result // Required: true Result *Position `json:"result"` }
PrivateGetPositionResponse private get position response swagger:model private_get_position_response
func (*PrivateGetPositionResponse) MarshalBinary ¶
func (m *PrivateGetPositionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetPositionResponse) MarshalJSON ¶
func (m PrivateGetPositionResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetPositionResponse) UnmarshalBinary ¶
func (m *PrivateGetPositionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetPositionResponse) UnmarshalJSON ¶
func (m *PrivateGetPositionResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetPositionsResponse ¶
type PrivateGetPositionsResponse struct { BaseMessage // result // Required: true Result []*Position `json:"result"` }
PrivateGetPositionsResponse private get positions response swagger:model private_get_positions_response
func (*PrivateGetPositionsResponse) MarshalBinary ¶
func (m *PrivateGetPositionsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetPositionsResponse) MarshalJSON ¶
func (m PrivateGetPositionsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetPositionsResponse) UnmarshalBinary ¶
func (m *PrivateGetPositionsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetPositionsResponse) UnmarshalJSON ¶
func (m *PrivateGetPositionsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetStopOrderHistoryResponse ¶
type PrivateGetStopOrderHistoryResponse struct { BaseMessage // result // Required: true Result *PrivateGetStopOrderHistoryResponseAO1Result `json:"result"` }
PrivateGetStopOrderHistoryResponse private get stop order history response swagger:model private_get_stop_order_history_response
func (*PrivateGetStopOrderHistoryResponse) MarshalBinary ¶
func (m *PrivateGetStopOrderHistoryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetStopOrderHistoryResponse) MarshalJSON ¶
func (m PrivateGetStopOrderHistoryResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetStopOrderHistoryResponse) UnmarshalBinary ¶
func (m *PrivateGetStopOrderHistoryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetStopOrderHistoryResponse) UnmarshalJSON ¶
func (m *PrivateGetStopOrderHistoryResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetStopOrderHistoryResponseAO1Result ¶
type PrivateGetStopOrderHistoryResponseAO1Result struct { // continuation Continuation Continuation `json:"continuation,omitempty"` // entities Entities []*StopOrderHistoryRecord `json:"entities"` }
PrivateGetStopOrderHistoryResponseAO1Result private get stop order history response a o1 result swagger:model PrivateGetStopOrderHistoryResponseAO1Result
func (*PrivateGetStopOrderHistoryResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetStopOrderHistoryResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetStopOrderHistoryResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetStopOrderHistoryResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetSubaccountsResponse ¶
type PrivateGetSubaccountsResponse struct { BaseMessage // result // Required: true Result []*PrivateGetSubaccountsResponseResultItems0 `json:"result"` }
PrivateGetSubaccountsResponse private get subaccounts response swagger:model private_get_subaccounts_response
func (*PrivateGetSubaccountsResponse) MarshalBinary ¶
func (m *PrivateGetSubaccountsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetSubaccountsResponse) MarshalJSON ¶
func (m PrivateGetSubaccountsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetSubaccountsResponse) UnmarshalBinary ¶
func (m *PrivateGetSubaccountsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetSubaccountsResponse) UnmarshalJSON ¶
func (m *PrivateGetSubaccountsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetSubaccountsResponseResultItems0 ¶
type PrivateGetSubaccountsResponseResultItems0 struct { // User email // Required: true Email *string `json:"email"` // Account/Subaccount identifier // Required: true ID *int64 `json:"id"` // `true` when password for the subaccount has been configured // Required: true IsPassword *bool `json:"is_password"` // Informs whether login to the subaccount is enabled LoginEnabled bool `json:"login_enabled,omitempty"` // New email address that has not yet been confirmed. This field is only included if `with_portfolio` == `true`. NotConfirmedEmail string `json:"not_confirmed_email,omitempty"` // Only if with_portfolio == true Portfolio *Portfolio `json:"portfolio,omitempty"` // When `true` - receive all notification emails on the main email // Required: true ReceiveNotifications *bool `json:"receive_notifications"` // System generated user nickname // Required: true SystemName *string `json:"system_name"` // Whether the two factor authentication is enabled // Required: true TfaEnabled *bool `json:"tfa_enabled"` // type // Required: true // Enum: [main subaccount] Type *string `json:"type"` // username // Required: true Username *string `json:"username"` }
PrivateGetSubaccountsResponseResultItems0 private get subaccounts response result items0 swagger:model PrivateGetSubaccountsResponseResultItems0
func (*PrivateGetSubaccountsResponseResultItems0) MarshalBinary ¶
func (m *PrivateGetSubaccountsResponseResultItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetSubaccountsResponseResultItems0) UnmarshalBinary ¶
func (m *PrivateGetSubaccountsResponseResultItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetTransfersResponse ¶
type PrivateGetTransfersResponse struct { BaseMessage // result // Required: true Result *PrivateGetTransfersResponseAO1Result `json:"result"` }
PrivateGetTransfersResponse private get transfers response swagger:model private_get_transfers_response
func (*PrivateGetTransfersResponse) MarshalBinary ¶
func (m *PrivateGetTransfersResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetTransfersResponse) MarshalJSON ¶
func (m PrivateGetTransfersResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetTransfersResponse) UnmarshalBinary ¶
func (m *PrivateGetTransfersResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetTransfersResponse) UnmarshalJSON ¶
func (m *PrivateGetTransfersResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetTransfersResponseAO1Result ¶
type PrivateGetTransfersResponseAO1Result struct { // count // Required: true Count ResultCount `json:"count"` // data // Required: true Data []*TransferItem `json:"data"` }
PrivateGetTransfersResponseAO1Result private get transfers response a o1 result swagger:model PrivateGetTransfersResponseAO1Result
func (*PrivateGetTransfersResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetTransfersResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetTransfersResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetTransfersResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetUserTradesByOrderResponse ¶
type PrivateGetUserTradesByOrderResponse struct { BaseMessage PrivateGetUserTradesByOrderResponseAllOf1 }
PrivateGetUserTradesByOrderResponse private get user trades by order response swagger:model private_get_user_trades_by_order_response
func (*PrivateGetUserTradesByOrderResponse) MarshalBinary ¶
func (m *PrivateGetUserTradesByOrderResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetUserTradesByOrderResponse) MarshalJSON ¶
func (m PrivateGetUserTradesByOrderResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetUserTradesByOrderResponse) UnmarshalBinary ¶
func (m *PrivateGetUserTradesByOrderResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetUserTradesByOrderResponse) UnmarshalJSON ¶
func (m *PrivateGetUserTradesByOrderResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetUserTradesByOrderResponseAllOf1 ¶
type PrivateGetUserTradesByOrderResponseAllOf1 []*UserTrade
PrivateGetUserTradesByOrderResponseAllOf1 private get user trades by order response all of1 swagger:model PrivateGetUserTradesByOrderResponseAllOf1
type PrivateGetUserTradesHistoryResponse ¶
type PrivateGetUserTradesHistoryResponse struct { BaseMessage // result // Required: true Result *PrivateGetUserTradesHistoryResponseAO1Result `json:"result"` }
PrivateGetUserTradesHistoryResponse private get user trades history response swagger:model private_get_user_trades_history_response
func (*PrivateGetUserTradesHistoryResponse) MarshalBinary ¶
func (m *PrivateGetUserTradesHistoryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetUserTradesHistoryResponse) MarshalJSON ¶
func (m PrivateGetUserTradesHistoryResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetUserTradesHistoryResponse) UnmarshalBinary ¶
func (m *PrivateGetUserTradesHistoryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetUserTradesHistoryResponse) UnmarshalJSON ¶
func (m *PrivateGetUserTradesHistoryResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetUserTradesHistoryResponseAO1Result ¶
type PrivateGetUserTradesHistoryResponseAO1Result struct { // has more // Required: true HasMore *bool `json:"has_more"` // trades // Required: true Trades []*UserTrade `json:"trades"` }
PrivateGetUserTradesHistoryResponseAO1Result private get user trades history response a o1 result swagger:model PrivateGetUserTradesHistoryResponseAO1Result
func (*PrivateGetUserTradesHistoryResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetUserTradesHistoryResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetUserTradesHistoryResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetUserTradesHistoryResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateGetWithdrawalsResponse ¶
type PrivateGetWithdrawalsResponse struct { BaseMessage // result // Required: true Result *PrivateGetWithdrawalsResponseAO1Result `json:"result"` }
PrivateGetWithdrawalsResponse private get withdrawals response swagger:model private_get_withdrawals_response
func (*PrivateGetWithdrawalsResponse) MarshalBinary ¶
func (m *PrivateGetWithdrawalsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateGetWithdrawalsResponse) MarshalJSON ¶
func (m PrivateGetWithdrawalsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateGetWithdrawalsResponse) UnmarshalBinary ¶
func (m *PrivateGetWithdrawalsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateGetWithdrawalsResponse) UnmarshalJSON ¶
func (m *PrivateGetWithdrawalsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateGetWithdrawalsResponseAO1Result ¶
type PrivateGetWithdrawalsResponseAO1Result struct { // count // Required: true Count ResultCount `json:"count"` // data // Required: true Data []*Withdrawal `json:"data"` }
PrivateGetWithdrawalsResponseAO1Result private get withdrawals response a o1 result swagger:model PrivateGetWithdrawalsResponseAO1Result
func (*PrivateGetWithdrawalsResponseAO1Result) MarshalBinary ¶
func (m *PrivateGetWithdrawalsResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateGetWithdrawalsResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateGetWithdrawalsResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateRemoveFromAddressBookResponse ¶
type PrivateRemoveFromAddressBookResponse struct { BaseMessage // ok // Required: true Result *string `json:"result"` }
PrivateRemoveFromAddressBookResponse private remove from address book response swagger:model private_remove_from_address_book_response
func (*PrivateRemoveFromAddressBookResponse) MarshalBinary ¶
func (m *PrivateRemoveFromAddressBookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateRemoveFromAddressBookResponse) MarshalJSON ¶
func (m PrivateRemoveFromAddressBookResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateRemoveFromAddressBookResponse) UnmarshalBinary ¶
func (m *PrivateRemoveFromAddressBookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateRemoveFromAddressBookResponse) UnmarshalJSON ¶
func (m *PrivateRemoveFromAddressBookResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateSettlementResponse ¶
type PrivateSettlementResponse struct { BaseMessage // result // Required: true Result *PrivateSettlementResponseAO1Result `json:"result"` }
PrivateSettlementResponse private settlement response swagger:model private_settlement_response
func (*PrivateSettlementResponse) MarshalBinary ¶
func (m *PrivateSettlementResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateSettlementResponse) MarshalJSON ¶
func (m PrivateSettlementResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateSettlementResponse) UnmarshalBinary ¶
func (m *PrivateSettlementResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateSettlementResponse) UnmarshalJSON ¶
func (m *PrivateSettlementResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateSettlementResponseAO1Result ¶
type PrivateSettlementResponseAO1Result struct { // continuation // Required: true Continuation Continuation `json:"continuation"` // settlements // Required: true Settlements []*Settlement `json:"settlements"` }
PrivateSettlementResponseAO1Result private settlement response a o1 result swagger:model PrivateSettlementResponseAO1Result
func (*PrivateSettlementResponseAO1Result) MarshalBinary ¶
func (m *PrivateSettlementResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PrivateSettlementResponseAO1Result) UnmarshalBinary ¶
func (m *PrivateSettlementResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PrivateSubmitTransferResponse ¶
type PrivateSubmitTransferResponse struct { BaseMessage // result // Required: true Result *TransferItem `json:"result"` }
PrivateSubmitTransferResponse private submit transfer response swagger:model private_submit_transfer_response
func (*PrivateSubmitTransferResponse) MarshalBinary ¶
func (m *PrivateSubmitTransferResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateSubmitTransferResponse) MarshalJSON ¶
func (m PrivateSubmitTransferResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateSubmitTransferResponse) UnmarshalBinary ¶
func (m *PrivateSubmitTransferResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateSubmitTransferResponse) UnmarshalJSON ¶
func (m *PrivateSubmitTransferResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateSubscribeResponse ¶
type PrivateSubscribeResponse struct { BaseMessage // A list of subscribed channels. // Required: true Result []string `json:"result"` }
PrivateSubscribeResponse private subscribe response swagger:model private_subscribe_response
func (*PrivateSubscribeResponse) MarshalBinary ¶
func (m *PrivateSubscribeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateSubscribeResponse) MarshalJSON ¶
func (m PrivateSubscribeResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateSubscribeResponse) UnmarshalBinary ¶
func (m *PrivateSubscribeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateSubscribeResponse) UnmarshalJSON ¶
func (m *PrivateSubscribeResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PrivateWithdrawResponse ¶
type PrivateWithdrawResponse struct { BaseMessage // result // Required: true Result *Withdrawal `json:"result"` }
PrivateWithdrawResponse private withdraw response swagger:model private_withdraw_response
func (*PrivateWithdrawResponse) MarshalBinary ¶
func (m *PrivateWithdrawResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PrivateWithdrawResponse) MarshalJSON ¶
func (m PrivateWithdrawResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PrivateWithdrawResponse) UnmarshalBinary ¶
func (m *PrivateWithdrawResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PrivateWithdrawResponse) UnmarshalJSON ¶
func (m *PrivateWithdrawResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type ProfitLoss ¶
type ProfitLoss float64
ProfitLoss Profit and loss in base currency. swagger:model profit_loss
type PublicAuthResponse ¶
type PublicAuthResponse struct { BaseMessage // result // Required: true Result *PublicAuthResponseAO1Result `json:"result"` }
PublicAuthResponse public auth response swagger:model public_auth_response
func (*PublicAuthResponse) MarshalBinary ¶
func (m *PublicAuthResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicAuthResponse) MarshalJSON ¶
func (m PublicAuthResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicAuthResponse) UnmarshalBinary ¶
func (m *PublicAuthResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicAuthResponse) UnmarshalJSON ¶
func (m *PublicAuthResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicAuthResponseAO1Result ¶
type PublicAuthResponseAO1Result struct { // access token // Required: true AccessToken *string `json:"access_token"` // Token lifetime in seconds // Required: true ExpiresIn *int64 `json:"expires_in"` // Can be used to request a new token (with a new lifetime) // Required: true RefreshToken *string `json:"refresh_token"` // Type of the access for assigned token // Required: true Scope *string `json:"scope"` // Copied from the input (if applicable) State string `json:"state,omitempty"` // Authorization type, allowed value - `bearer` // Required: true // Enum: [bearer] TokenType *string `json:"token_type"` }
PublicAuthResponseAO1Result public auth response a o1 result swagger:model PublicAuthResponseAO1Result
func (*PublicAuthResponseAO1Result) MarshalBinary ¶
func (m *PublicAuthResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicAuthResponseAO1Result) UnmarshalBinary ¶
func (m *PublicAuthResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicGetAnnouncementsResponse ¶
type PublicGetAnnouncementsResponse struct { BaseMessage // result // Required: true Result []*PublicGetAnnouncementsResponseResultItems0 `json:"result"` }
PublicGetAnnouncementsResponse public get announcements response swagger:model public_get_announcements_response
func (*PublicGetAnnouncementsResponse) MarshalBinary ¶
func (m *PublicGetAnnouncementsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetAnnouncementsResponse) MarshalJSON ¶
func (m PublicGetAnnouncementsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetAnnouncementsResponse) UnmarshalBinary ¶
func (m *PublicGetAnnouncementsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetAnnouncementsResponse) UnmarshalJSON ¶
func (m *PublicGetAnnouncementsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetAnnouncementsResponseResultItems0 ¶
type PublicGetAnnouncementsResponseResultItems0 struct { // The HTML body of the announcement // Required: true Body *string `json:"body"` // A unique identifier for the announcement // Required: true ID *float64 `json:"id"` // Whether the announcement is marked as important // Required: true Important *bool `json:"important"` // The timestamp in ms at which the announcement was published // Required: true PublicationTime *int64 `json:"publication_time"` // The title of the announcement // Required: true Title *string `json:"title"` }
PublicGetAnnouncementsResponseResultItems0 public get announcements response result items0 swagger:model PublicGetAnnouncementsResponseResultItems0
func (*PublicGetAnnouncementsResponseResultItems0) MarshalBinary ¶
func (m *PublicGetAnnouncementsResponseResultItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicGetAnnouncementsResponseResultItems0) UnmarshalBinary ¶
func (m *PublicGetAnnouncementsResponseResultItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicGetBookSummaryResponse ¶
type PublicGetBookSummaryResponse struct { BaseMessage // result // Required: true Result []*BookSummary `json:"result"` }
PublicGetBookSummaryResponse public get book summary response swagger:model public_get_book_summary_response
func (*PublicGetBookSummaryResponse) MarshalBinary ¶
func (m *PublicGetBookSummaryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetBookSummaryResponse) MarshalJSON ¶
func (m PublicGetBookSummaryResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetBookSummaryResponse) UnmarshalBinary ¶
func (m *PublicGetBookSummaryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetBookSummaryResponse) UnmarshalJSON ¶
func (m *PublicGetBookSummaryResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetContractSizeResponse ¶
type PublicGetContractSizeResponse struct { BaseMessage // result // Required: true Result *PublicGetContractSizeResponseAO1Result `json:"result"` }
PublicGetContractSizeResponse public get contract size response swagger:model public_get_contract_size_response
func (*PublicGetContractSizeResponse) MarshalBinary ¶
func (m *PublicGetContractSizeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetContractSizeResponse) MarshalJSON ¶
func (m PublicGetContractSizeResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetContractSizeResponse) UnmarshalBinary ¶
func (m *PublicGetContractSizeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetContractSizeResponse) UnmarshalJSON ¶
func (m *PublicGetContractSizeResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetContractSizeResponseAO1Result ¶
type PublicGetContractSizeResponseAO1Result struct { // contract size // Required: true ContractSize ContractSize `json:"contract_size"` }
PublicGetContractSizeResponseAO1Result public get contract size response a o1 result swagger:model PublicGetContractSizeResponseAO1Result
func (*PublicGetContractSizeResponseAO1Result) MarshalBinary ¶
func (m *PublicGetContractSizeResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicGetContractSizeResponseAO1Result) UnmarshalBinary ¶
func (m *PublicGetContractSizeResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicGetCurrenciesResponse ¶
type PublicGetCurrenciesResponse struct { BaseMessage // result // Required: true Result []*CurrencyDetail `json:"result"` }
PublicGetCurrenciesResponse public get currencies response swagger:model public_get_currencies_response
func (*PublicGetCurrenciesResponse) MarshalBinary ¶
func (m *PublicGetCurrenciesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetCurrenciesResponse) MarshalJSON ¶
func (m PublicGetCurrenciesResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetCurrenciesResponse) UnmarshalBinary ¶
func (m *PublicGetCurrenciesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetCurrenciesResponse) UnmarshalJSON ¶
func (m *PublicGetCurrenciesResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetFooterResponse ¶
type PublicGetFooterResponse struct { // Required: true Result []*PublicGetFooterResponseResultItems0 `json:"result"` }
PublicGetFooterResponse public get footer response swagger:model public_get_footer_response
func (*PublicGetFooterResponse) MarshalBinary ¶
func (m *PublicGetFooterResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetFooterResponse) MarshalJSON ¶
func (m PublicGetFooterResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetFooterResponse) UnmarshalBinary ¶
func (m *PublicGetFooterResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetFooterResponse) UnmarshalJSON ¶
func (m *PublicGetFooterResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetFooterResponseResultItems0 ¶
type PublicGetFooterResponseResultItems0 struct { // Required: true Name *string `json:"name"` // Required: true TitleEn *string `json:"title_en"` TitleJa string `json:"title_ja,omitempty"` TitleKo string `json:"title_ko,omitempty"` TitleRu string `json:"title_ru,omitempty"` TitleZh string `json:"title_zh,omitempty"` // Required: true Type *string `json:"type"` }
PublicGetFooterResponseResultItems0 public get footer response result items0 swagger:model PublicGetFooterResponseResultItems0
func (*PublicGetFooterResponseResultItems0) MarshalBinary ¶
func (m *PublicGetFooterResponseResultItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicGetFooterResponseResultItems0) UnmarshalBinary ¶
func (m *PublicGetFooterResponseResultItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicGetFundingChartDataResponse ¶
type PublicGetFundingChartDataResponse struct { BaseMessage // result // Required: true Result *PublicGetFundingChartDataResponseAO1Result `json:"result"` }
PublicGetFundingChartDataResponse public get funding chart data response swagger:model public_get_funding_chart_data_response
func (*PublicGetFundingChartDataResponse) MarshalBinary ¶
func (m *PublicGetFundingChartDataResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetFundingChartDataResponse) MarshalJSON ¶
func (m PublicGetFundingChartDataResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetFundingChartDataResponse) UnmarshalBinary ¶
func (m *PublicGetFundingChartDataResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetFundingChartDataResponse) UnmarshalJSON ¶
func (m *PublicGetFundingChartDataResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetFundingChartDataResponseAO1Result ¶
type PublicGetFundingChartDataResponseAO1Result struct { // Current interest // Required: true CurrentInterest *float64 `json:"current_interest"` // data // Required: true Data []interface{} `json:"data"` // Current index price // Required: true IndexPrice *float64 `json:"index_price"` // Current interest 8h // Required: true Interest8h *float64 `json:"interest_8h"` // maximal interest // Required: true Max *float64 `json:"max"` }
PublicGetFundingChartDataResponseAO1Result public get funding chart data response a o1 result swagger:model PublicGetFundingChartDataResponseAO1Result
func (*PublicGetFundingChartDataResponseAO1Result) MarshalBinary ¶
func (m *PublicGetFundingChartDataResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicGetFundingChartDataResponseAO1Result) UnmarshalBinary ¶
func (m *PublicGetFundingChartDataResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicGetHistoricalVolatilityResponse ¶
type PublicGetHistoricalVolatilityResponse struct { BaseMessage // result // Required: true Result []interface{} `json:"result"` }
PublicGetHistoricalVolatilityResponse public get historical volatility response swagger:model public_get_historical_volatility_response
func (*PublicGetHistoricalVolatilityResponse) MarshalBinary ¶
func (m *PublicGetHistoricalVolatilityResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetHistoricalVolatilityResponse) MarshalJSON ¶
func (m PublicGetHistoricalVolatilityResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetHistoricalVolatilityResponse) UnmarshalBinary ¶
func (m *PublicGetHistoricalVolatilityResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetHistoricalVolatilityResponse) UnmarshalJSON ¶
func (m *PublicGetHistoricalVolatilityResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetInstrumentsResponse ¶
type PublicGetInstrumentsResponse struct { BaseMessage // result // Required: true Result []*Instrument `json:"result"` }
PublicGetInstrumentsResponse public get instruments response swagger:model public_get_instruments_response
func (*PublicGetInstrumentsResponse) MarshalBinary ¶
func (m *PublicGetInstrumentsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetInstrumentsResponse) MarshalJSON ¶
func (m PublicGetInstrumentsResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetInstrumentsResponse) UnmarshalBinary ¶
func (m *PublicGetInstrumentsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetInstrumentsResponse) UnmarshalJSON ¶
func (m *PublicGetInstrumentsResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetOptionMarkPricesResponse ¶
type PublicGetOptionMarkPricesResponse interface{}
PublicGetOptionMarkPricesResponse public get option mark prices response swagger:model public_get_option_mark_prices_response
type PublicGetOrderBookResponse ¶
type PublicGetOrderBookResponse struct { BaseMessage // result // Required: true Result *TickerNotificationWithBidsAndAsks `json:"result"` }
PublicGetOrderBookResponse public get order book response swagger:model public_get_order_book_response
func (*PublicGetOrderBookResponse) MarshalBinary ¶
func (m *PublicGetOrderBookResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetOrderBookResponse) MarshalJSON ¶
func (m PublicGetOrderBookResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetOrderBookResponse) UnmarshalBinary ¶
func (m *PublicGetOrderBookResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetOrderBookResponse) UnmarshalJSON ¶
func (m *PublicGetOrderBookResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetTimeResponse ¶
type PublicGetTimeResponse struct { BaseMessage // Current timestamp (milliseconds) // Required: true Result *int64 `json:"result"` }
PublicGetTimeResponse public get time response swagger:model public_get_time_response
func (*PublicGetTimeResponse) MarshalBinary ¶
func (m *PublicGetTimeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetTimeResponse) MarshalJSON ¶
func (m PublicGetTimeResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetTimeResponse) UnmarshalBinary ¶
func (m *PublicGetTimeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetTimeResponse) UnmarshalJSON ¶
func (m *PublicGetTimeResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetTradesVolumesResponse ¶
type PublicGetTradesVolumesResponse struct { BaseMessage // result // Required: true Result []*TradesVolumes `json:"result"` }
PublicGetTradesVolumesResponse public get trades volumes response swagger:model public_get_trades_volumes_response
func (*PublicGetTradesVolumesResponse) MarshalBinary ¶
func (m *PublicGetTradesVolumesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetTradesVolumesResponse) MarshalJSON ¶
func (m PublicGetTradesVolumesResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetTradesVolumesResponse) UnmarshalBinary ¶
func (m *PublicGetTradesVolumesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetTradesVolumesResponse) UnmarshalJSON ¶
func (m *PublicGetTradesVolumesResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetTradingviewChartDataResponse ¶
type PublicGetTradingviewChartDataResponse struct { BaseMessage // result // Required: true Result *PublicGetTradingviewChartDataResponseAO1Result `json:"result"` }
PublicGetTradingviewChartDataResponse public get tradingview chart data response swagger:model public_get_tradingview_chart_data_response
func (*PublicGetTradingviewChartDataResponse) MarshalBinary ¶
func (m *PublicGetTradingviewChartDataResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicGetTradingviewChartDataResponse) MarshalJSON ¶
func (m PublicGetTradingviewChartDataResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicGetTradingviewChartDataResponse) UnmarshalBinary ¶
func (m *PublicGetTradingviewChartDataResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicGetTradingviewChartDataResponse) UnmarshalJSON ¶
func (m *PublicGetTradingviewChartDataResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicGetTradingviewChartDataResponseAO1Result ¶
type PublicGetTradingviewChartDataResponseAO1Result struct { // List of prices at close (one per candle) Close []QuotePrice `json:"close"` // List of highest price levels (one per candle) High []QuotePrice `json:"high"` // List of lowest price levels (one per candle) Low []QuotePrice `json:"low"` // List of prices at open (one per candle) Open []QuotePrice `json:"open"` // Status of the query: `ok` or `no_data` // Enum: [ok no_data] Status string `json:"status,omitempty"` // Values of the time axis given in milliseconds since UNIX epoch Ticks []Timestamp `json:"ticks"` // List of volume bars (one per candle) Volume []ChartVolume `json:"volume"` }
PublicGetTradingviewChartDataResponseAO1Result public get tradingview chart data response a o1 result swagger:model PublicGetTradingviewChartDataResponseAO1Result
func (*PublicGetTradingviewChartDataResponseAO1Result) MarshalBinary ¶
func (m *PublicGetTradingviewChartDataResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicGetTradingviewChartDataResponseAO1Result) UnmarshalBinary ¶
func (m *PublicGetTradingviewChartDataResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicIndexResponse ¶
type PublicIndexResponse struct { BaseMessage // result // Required: true Result *PublicIndexResponseAO1Result `json:"result"` }
PublicIndexResponse public index response swagger:model public_index_response
func (*PublicIndexResponse) MarshalBinary ¶
func (m *PublicIndexResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicIndexResponse) MarshalJSON ¶
func (m PublicIndexResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicIndexResponse) UnmarshalBinary ¶
func (m *PublicIndexResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicIndexResponse) UnmarshalJSON ¶
func (m *PublicIndexResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicIndexResponseAO1Result ¶
type PublicIndexResponseAO1Result struct { // The current index price for BTC-USD (only for selected currency == BTC) // Required: true BTC *float64 `json:"BTC"` // The current index price for ETH-USD (only for selected currency == ETH) ETH float64 `json:"ETH,omitempty"` // Estimated delivery price for the currency. For more details, see Documentation > General > Expiration Price // Required: true Edp *float64 `json:"edp"` }
PublicIndexResponseAO1Result public index response a o1 result swagger:model PublicIndexResponseAO1Result
func (*PublicIndexResponseAO1Result) MarshalBinary ¶
func (m *PublicIndexResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicIndexResponseAO1Result) UnmarshalBinary ¶
func (m *PublicIndexResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicSettlementResponse ¶
type PublicSettlementResponse struct { BaseMessage // result // Required: true Result *PublicSettlementResponseAO1Result `json:"result"` }
PublicSettlementResponse public settlement response swagger:model public_settlement_response
func (*PublicSettlementResponse) MarshalBinary ¶
func (m *PublicSettlementResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicSettlementResponse) MarshalJSON ¶
func (m PublicSettlementResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicSettlementResponse) UnmarshalBinary ¶
func (m *PublicSettlementResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicSettlementResponse) UnmarshalJSON ¶
func (m *PublicSettlementResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicSettlementResponseAO1Result ¶
type PublicSettlementResponseAO1Result struct { // continuation // Required: true Continuation Continuation `json:"continuation"` // settlements // Required: true Settlements []*Settlement `json:"settlements"` }
PublicSettlementResponseAO1Result public settlement response a o1 result swagger:model PublicSettlementResponseAO1Result
func (*PublicSettlementResponseAO1Result) MarshalBinary ¶
func (m *PublicSettlementResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicSettlementResponseAO1Result) UnmarshalBinary ¶
func (m *PublicSettlementResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicTestResponse ¶
type PublicTestResponse struct { BaseMessage // result // Required: true Result *PublicTestResponseAO1Result `json:"result"` }
PublicTestResponse public test response swagger:model public_test_response
func (*PublicTestResponse) MarshalBinary ¶
func (m *PublicTestResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicTestResponse) MarshalJSON ¶
func (m PublicTestResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicTestResponse) UnmarshalBinary ¶
func (m *PublicTestResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicTestResponse) UnmarshalJSON ¶
func (m *PublicTestResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicTestResponseAO1Result ¶
type PublicTestResponseAO1Result struct { // The API version // Required: true Version *string `json:"version"` }
PublicTestResponseAO1Result public test response a o1 result swagger:model PublicTestResponseAO1Result
func (*PublicTestResponseAO1Result) MarshalBinary ¶
func (m *PublicTestResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicTestResponseAO1Result) UnmarshalBinary ¶
func (m *PublicTestResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicTickerResponse ¶
type PublicTickerResponse struct { BaseMessage // result // Required: true Result *TickerNotification `json:"result"` }
PublicTickerResponse public ticker response swagger:model public_ticker_response
func (*PublicTickerResponse) MarshalBinary ¶
func (m *PublicTickerResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicTickerResponse) MarshalJSON ¶
func (m PublicTickerResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicTickerResponse) UnmarshalBinary ¶
func (m *PublicTickerResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicTickerResponse) UnmarshalJSON ¶
func (m *PublicTickerResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicTrade ¶
type PublicTrade struct { // Trade amount. For perpetual and futures - in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. // Required: true Amount *float64 `json:"amount"` // Trade direction of the taker // Required: true Direction Direction `json:"direction"` // Index Price at the moment of trade // Required: true IndexPrice *float64 `json:"index_price"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // Option implied volatility for the price (Option only) Iv float64 `json:"iv,omitempty"` // Optional field (only for trades caused by liquidation): `"M"` when maker side of trade was under liquidation, `"T"` when taker side was under liquidation, `"MT"` when both sides of trade were under liquidation // Enum: [M T MT] Liquidation string `json:"liquidation,omitempty"` // The price of the trade // Required: true Price Price `json:"price"` // tick direction // Required: true TickDirection TickDirection `json:"tick_direction"` // The timestamp of the trade // Required: true Timestamp *int64 `json:"timestamp"` // trade id // Required: true TradeID TradeID `json:"trade_id"` // trade seq // Required: true TradeSeq TradeSeq `json:"trade_seq"` }
PublicTrade public trade swagger:model public_trade
func (*PublicTrade) MarshalBinary ¶
func (m *PublicTrade) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicTrade) UnmarshalBinary ¶
func (m *PublicTrade) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PublicTradesHistoryResponse ¶
type PublicTradesHistoryResponse struct { BaseMessage // result // Required: true Result *PublicTradesHistoryResponseAO1Result `json:"result"` }
PublicTradesHistoryResponse public trades history response swagger:model public_trades_history_response
func (*PublicTradesHistoryResponse) MarshalBinary ¶
func (m *PublicTradesHistoryResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PublicTradesHistoryResponse) MarshalJSON ¶
func (m PublicTradesHistoryResponse) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PublicTradesHistoryResponse) UnmarshalBinary ¶
func (m *PublicTradesHistoryResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PublicTradesHistoryResponse) UnmarshalJSON ¶
func (m *PublicTradesHistoryResponse) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PublicTradesHistoryResponseAO1Result ¶
type PublicTradesHistoryResponseAO1Result struct { // has more // Required: true HasMore *bool `json:"has_more"` // trades // Required: true Trades []*PublicTrade `json:"trades"` }
PublicTradesHistoryResponseAO1Result public trades history response a o1 result swagger:model PublicTradesHistoryResponseAO1Result
func (*PublicTradesHistoryResponseAO1Result) MarshalBinary ¶
func (m *PublicTradesHistoryResponseAO1Result) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PublicTradesHistoryResponseAO1Result) UnmarshalBinary ¶
func (m *PublicTradesHistoryResponseAO1Result) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Quantity ¶
type Quantity float64
Quantity The number of contracts to be traded. swagger:model quantity
type QuoteNotification ¶
type QuoteNotification struct { // best ask amount // Required: true BestAskAmount BestAskAmount `json:"best_ask_amount"` // best ask price // Required: true BestAskPrice BestAskPrice `json:"best_ask_price"` // best bid amount // Required: true BestBidAmount BestBidAmount `json:"best_bid_amount"` // best bid price // Required: true BestBidPrice BestBidPrice `json:"best_bid_price"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` }
QuoteNotification quote notification swagger:model quote_notification
func (*QuoteNotification) MarshalBinary ¶
func (m *QuoteNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QuoteNotification) UnmarshalBinary ¶
func (m *QuoteNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type QuotePrice ¶
type QuotePrice float64
QuotePrice Price in quote currency swagger:model quote_price
type ReduceOnly ¶
type ReduceOnly bool
ReduceOnly `true` for reduce-only orders only swagger:model reduce_only
type ResultCount ¶
type ResultCount int64
ResultCount Total number of results available swagger:model result_count
type Settlement ¶
type Settlement struct { // funded amount (bankruptcy only) Funded float64 `json:"funded,omitempty"` // funding (in base currency ; settlement for perpetual product only) // Required: true Funding *float64 `json:"funding"` // underlying index price at time of event (in quote currency; settlement and delivery only) // Required: true IndexPrice *float64 `json:"index_price"` // instrument name (settlement and delivery only) // Required: true InstrumentName *string `json:"instrument_name"` // mark price for at the settlement time (in quote currency; settlement and delivery only) MarkPrice float64 `json:"mark_price,omitempty"` // position size (in quote currency; settlement and delivery only) // Required: true Position *float64 `json:"position"` // profit and loss (in base currency; settlement and delivery only) ProfitLoss float64 `json:"profit_loss,omitempty"` // value of session bankrupcy (in base currency; bankruptcy only) SessionBankrupcy float64 `json:"session_bankrupcy,omitempty"` // total value of session profit and losses (in base currency) // Required: true SessionProfitLoss *float64 `json:"session_profit_loss"` // total amount of paid taxes/fees (in base currency; bankruptcy only) SessionTax float64 `json:"session_tax,omitempty"` // rate of paid texes/fees (in base currency; bankruptcy only) SessionTaxRate float64 `json:"session_tax_rate,omitempty"` // the amount of the socialized losses (in base currency; bankruptcy only) Socialized float64 `json:"socialized,omitempty"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` // type // Required: true Type SettlementType `json:"type"` }
Settlement settlement swagger:model settlement
func (*Settlement) MarshalBinary ¶
func (m *Settlement) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Settlement) UnmarshalBinary ¶
func (m *Settlement) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SettlementPrice ¶
type SettlementPrice float64
SettlementPrice The settlement price for the instrument. Only when `state = open` swagger:model settlement_price
type SettlementType ¶
type SettlementType string
SettlementType The type of settlement. `settlement`, `delivery` or `bankruptcy`. swagger:model settlement_type
const ( // SettlementTypeSettlement captures enum value "settlement" SettlementTypeSettlement SettlementType = "settlement" // SettlementTypeDelivery captures enum value "delivery" SettlementTypeDelivery SettlementType = "delivery" // SettlementTypeBankruptcy captures enum value "bankruptcy" SettlementTypeBankruptcy SettlementType = "bankruptcy" )
type SimpleOrderType ¶
type SimpleOrderType string
SimpleOrderType Order type, `"all"`, `"limit"`, `"stop"` swagger:model simple_order_type
const ( // SimpleOrderTypeAll captures enum value "all" SimpleOrderTypeAll SimpleOrderType = "all" // SimpleOrderTypeLimit captures enum value "limit" SimpleOrderTypeLimit SimpleOrderType = "limit" // SimpleOrderTypeStop captures enum value "stop" SimpleOrderTypeStop SimpleOrderType = "stop" )
type StateNotification ¶
type StateNotification struct { // instrument name InstrumentName InstrumentName `json:"instrument_name,omitempty"` // State of instrument // Enum: [closed created terminated] State string `json:"state,omitempty"` // timestamp Timestamp Timestamp `json:"timestamp,omitempty"` }
StateNotification state notification swagger:model state_notification
func (*StateNotification) MarshalBinary ¶
func (m *StateNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StateNotification) UnmarshalBinary ¶
func (m *StateNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Stats ¶
type Stats struct { // highest price during 24h // Required: true High *float64 `json:"high"` // lowest price during 24h // Required: true Low *float64 `json:"low"` // volume during last 24h in base currency // Required: true Volume *float64 `json:"volume"` }
Stats stats swagger:model stats
func (*Stats) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stats) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StopOrderHistoryRecord ¶
type StopOrderHistoryRecord struct { // amount // Required: true Amount Amount `json:"amount"` // direction // Required: true Direction Direction `json:"direction"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // last update timestamp LastUpdateTimestamp Timestamp `json:"last_update_timestamp,omitempty"` // order id // Required: true OrderID OrderID `json:"order_id"` // order state // Required: true OrderState OrderState `json:"order_state"` // price // Required: true Price Price `json:"price"` // user or system request type for the stop order. "add" - to add order, "cancel" - to cancel, "edit" - to change order, "trigger:stop" - to trigger stop order, "trigger:order" - to spawn limit or market order as the result of the triggering "trigger:stop" // Required: true Request *string `json:"request"` // Id of the user stop-order used for the stop-order reference before triggering // Required: true StopID *string `json:"stop_id"` // stop price // Required: true StopPrice StopPrice `json:"stop_price"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` // trigger // Required: true Trigger Trigger `json:"trigger"` }
StopOrderHistoryRecord stop order history record swagger:model stop_order_history_record
func (*StopOrderHistoryRecord) MarshalBinary ¶
func (m *StopOrderHistoryRecord) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopOrderHistoryRecord) UnmarshalBinary ¶
func (m *StopOrderHistoryRecord) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopPrice ¶
type StopPrice float64
StopPrice stop price (Only for future stop orders) swagger:model stop_price
type TickDirection ¶
type TickDirection int64
TickDirection Direction of the "tick" (`0` = Plus Tick, `1` = Zero-Plus Tick, `2` = Minus Tick, `3` = Zero-Minus Tick). swagger:model tick_direction
type TickerNotification ¶
type TickerNotification struct { // ask iv AskIv AskIv `json:"ask_iv,omitempty"` // best ask amount // Required: true BestAskAmount BestAskAmount `json:"best_ask_amount"` // best ask price // Required: true BestAskPrice BestAskPrice `json:"best_ask_price"` // best bid amount // Required: true BestBidAmount BestBidAmount `json:"best_bid_amount"` // best bid price // Required: true BestBidPrice BestBidPrice `json:"best_bid_price"` // bid iv BidIv BidIv `json:"bid_iv,omitempty"` // current funding CurrentFunding CurrentFunding `json:"current_funding,omitempty"` // delivery price DeliveryPrice DeliveryPrice `json:"delivery_price,omitempty"` // funding 8h Funding8h Funding8h `json:"funding_8h,omitempty"` // greeks Greeks *Greeks `json:"greeks,omitempty"` // index price // Required: true IndexPrice IndexPrice `json:"index_price"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // interest rate InterestRate InterestRate `json:"interest_rate,omitempty"` // last price // Required: true LastPrice LastPrice `json:"last_price"` // mark iv MarkIv MarkIv `json:"mark_iv,omitempty"` // mark price // Required: true MarkPrice MarkPrice `json:"mark_price"` // max price // Required: true MaxPrice MaxPrice `json:"max_price"` // min price // Required: true MinPrice MinPrice `json:"min_price"` // open interest // Required: true OpenInterest OpenInterest `json:"open_interest"` // settlement price SettlementPrice SettlementPrice `json:"settlement_price,omitempty"` // state // Required: true State BookState `json:"state"` // stats // Required: true Stats *Stats `json:"stats"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` // underlying index UnderlyingIndex UnderlyingIndex `json:"underlying_index,omitempty"` // underlying price UnderlyingPrice UnderlyingPrice `json:"underlying_price,omitempty"` }
TickerNotification ticker notification swagger:model ticker_notification
func (*TickerNotification) MarshalBinary ¶
func (m *TickerNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TickerNotification) UnmarshalBinary ¶
func (m *TickerNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TickerNotificationWithBidsAndAsks ¶
type TickerNotificationWithBidsAndAsks struct { // ask iv AskIv AskIv `json:"ask_iv,omitempty"` // asks // Required: true Asks Asks `json:"asks"` // best ask amount // Required: true BestAskAmount BestAskAmount `json:"best_ask_amount"` // best ask price // Required: true BestAskPrice BestAskPrice `json:"best_ask_price"` // best bid amount // Required: true BestBidAmount BestBidAmount `json:"best_bid_amount"` // best bid price // Required: true BestBidPrice BestBidPrice `json:"best_bid_price"` // bid iv BidIv BidIv `json:"bid_iv,omitempty"` // bids // Required: true Bids Bids `json:"bids"` // current funding CurrentFunding CurrentFunding `json:"current_funding,omitempty"` // delivery price DeliveryPrice DeliveryPrice `json:"delivery_price,omitempty"` // funding 8h Funding8h Funding8h `json:"funding_8h,omitempty"` // greeks Greeks *Greeks `json:"greeks,omitempty"` // index price // Required: true IndexPrice IndexPrice `json:"index_price"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // interest rate InterestRate InterestRate `json:"interest_rate,omitempty"` // last price // Required: true LastPrice LastPrice `json:"last_price"` // mark iv MarkIv MarkIv `json:"mark_iv,omitempty"` // mark price // Required: true MarkPrice MarkPrice `json:"mark_price"` // max price // Required: true MaxPrice MaxPrice `json:"max_price"` // min price // Required: true MinPrice MinPrice `json:"min_price"` // open interest // Required: true OpenInterest OpenInterest `json:"open_interest"` // settlement price SettlementPrice SettlementPrice `json:"settlement_price,omitempty"` // state // Required: true State BookState `json:"state"` // stats // Required: true Stats *Stats `json:"stats"` // timestamp // Required: true Timestamp Timestamp `json:"timestamp"` // underlying index UnderlyingIndex UnderlyingIndex `json:"underlying_index,omitempty"` // underlying price UnderlyingPrice UnderlyingPrice `json:"underlying_price,omitempty"` }
TickerNotificationWithBidsAndAsks ticker notification with bids and asks swagger:model ticker_notification_with_bids_and_asks
func (*TickerNotificationWithBidsAndAsks) MarshalBinary ¶
func (m *TickerNotificationWithBidsAndAsks) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TickerNotificationWithBidsAndAsks) UnmarshalBinary ¶
func (m *TickerNotificationWithBidsAndAsks) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TimeInForce ¶
type TimeInForce string
TimeInForce Order time in force: `"good_til_cancelled"`, `"fill_or_kill"`, `"immediate_or_cancel"` swagger:model time_in_force
const ( // TimeInForceGoodTilCancelled captures enum value "good_til_cancelled" TimeInForceGoodTilCancelled TimeInForce = "good_til_cancelled" // TimeInForceFillOrKill captures enum value "fill_or_kill" TimeInForceFillOrKill TimeInForce = "fill_or_kill" // TimeInForceImmediateOrCancel captures enum value "immediate_or_cancel" TimeInForceImmediateOrCancel TimeInForce = "immediate_or_cancel" )
type Timestamp ¶
type Timestamp int64
Timestamp The timestamp (seconds since the Unix epoch, with millisecond precision) swagger:model timestamp
type TimestampForBookNotifications ¶
type TimestampForBookNotifications int64
TimestampForBookNotifications The timestamp of last change (seconds since the Unix epoch, with millisecond precision) swagger:model timestamp_for_book_notifications
type TradeID ¶
type TradeID string
TradeID Unique (per currency) trade identifier swagger:model trade_id
type TradeSeq ¶
type TradeSeq int64
TradeSeq The sequence number of the trade within instrument swagger:model trade_seq
type TradesVolumes ¶
type TradesVolumes struct { // Total 24h trade volume for call options. This is expressed in the base currency, e.g. BTC for `btc_usd` // Required: true CallsVolume *float64 `json:"calls_volume"` // currency pair // Required: true CurrencyPair CurrencyPair `json:"currency_pair"` // Total 24h trade volume for futures. This is expressed in the base currency, e.g. BTC for `btc_usd` // Required: true FuturesVolume *float64 `json:"futures_volume"` // Total 24h trade volume for put options. This is expressed in the base currency, e.g. BTC for `btc_usd` // Required: true PutsVolume *float64 `json:"puts_volume"` }
TradesVolumes trades volumes swagger:model trades_volumes
func (*TradesVolumes) MarshalBinary ¶
func (m *TradesVolumes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TradesVolumes) UnmarshalBinary ¶
func (m *TradesVolumes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransferDirection ¶
type TransferDirection string
TransferDirection Transfer direction swagger:model transfer_direction
const ( // TransferDirectionPayment captures enum value "payment" TransferDirectionPayment TransferDirection = "payment" // TransferDirectionIncome captures enum value "income" TransferDirectionIncome TransferDirection = "income" )
type TransferItem ¶
type TransferItem struct { // amount // Required: true Amount CurrencyAmount `json:"amount"` // created timestamp // Required: true CreatedTimestamp Timestamp `json:"created_timestamp"` // currency // Required: true Currency Currency `json:"currency"` // direction Direction TransferDirection `json:"direction,omitempty"` // id // Required: true ID TransferID `json:"id"` // other side // Required: true OtherSide TransferOtherSide `json:"other_side"` // state // Required: true State TransferState `json:"state"` // type // Required: true Type TransferType `json:"type"` // updated timestamp // Required: true UpdatedTimestamp Timestamp `json:"updated_timestamp"` }
TransferItem transfer item swagger:model transfer_item
func (*TransferItem) MarshalBinary ¶
func (m *TransferItem) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TransferItem) UnmarshalBinary ¶
func (m *TransferItem) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TransferOtherSide ¶
type TransferOtherSide string
TransferOtherSide For transfer from/to subaccount returns this subaccount name, for transfer to other account returns address, for transfer from other account returns that accounts username. swagger:model transfer_other_side
type TransferState ¶
type TransferState string
TransferState Transfer state, allowed values : `prepared`, `confirmed`, `cancelled`, `waiting_for_admin`, `rejection_reason` swagger:model transfer_state
const ( // TransferStatePrepared captures enum value "prepared" TransferStatePrepared TransferState = "prepared" // TransferStateConfirmed captures enum value "confirmed" TransferStateConfirmed TransferState = "confirmed" // TransferStateCancelled captures enum value "cancelled" TransferStateCancelled TransferState = "cancelled" // TransferStateWaitingForAdmin captures enum value "waiting_for_admin" TransferStateWaitingForAdmin TransferState = "waiting_for_admin" // TransferStateRejectionReason captures enum value "rejection_reason" TransferStateRejectionReason TransferState = "rejection_reason" )
type TransferType ¶
type TransferType string
TransferType Type of transfer: `user` - sent to user, `subaccount` - sent to subaccount swagger:model transfer_type
const ( // TransferTypeUser captures enum value "user" TransferTypeUser TransferType = "user" // TransferTypeSubaccount captures enum value "subaccount" TransferTypeSubaccount TransferType = "subaccount" )
type Trigger ¶
type Trigger string
Trigger Trigger type (Only for stop orders). Allowed values: `"index_price"`, `"mark_price"`, `"last_price"`. swagger:model trigger
type Triggered ¶
type Triggered bool
Triggered Whether the stop order has been triggered (Only for stop orders) swagger:model triggered
type UnderlyingIndex ¶
type UnderlyingIndex float64
UnderlyingIndex Name of the underlying future, or `index_price` (options only) swagger:model underlying_index
type UnderlyingPrice ¶
type UnderlyingPrice float64
UnderlyingPrice Underlying price for implied volatility calculations (options only) swagger:model underlying_price
type UserChange ¶
type UserChange struct { // instrument name InstrumentName InstrumentName `json:"instrument_name,omitempty"` // orders Orders []*Order `json:"orders"` // position Position []*Position `json:"position"` // trades Trades []*UserTrade `json:"trades"` }
UserChange user change swagger:model user_change
func (*UserChange) MarshalBinary ¶
func (m *UserChange) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserChange) UnmarshalBinary ¶
func (m *UserChange) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserPortfolioNotification ¶
type UserPortfolioNotification struct { // The account's available funds // Required: true AvailableFunds *float64 `json:"available_funds"` // The account's available to withdrawal funds // Required: true AvailableWithdrawalFunds *float64 `json:"available_withdrawal_funds"` // The account's balance // Required: true Balance *float64 `json:"balance"` // The selected currency // Required: true Currency *string `json:"currency"` // The sum of position deltas // Required: true DeltaTotal *float64 `json:"delta_total"` // The account's current equity // Required: true Equity *float64 `json:"equity"` // Futures profit and Loss // Required: true FuturesPl *float64 `json:"futures_pl"` // Futures session realized profit and Loss // Required: true FuturesSessionRpl *float64 `json:"futures_session_rpl"` // Futures session unrealized profit and Loss // Required: true FuturesSessionUpl *float64 `json:"futures_session_upl"` // The account's initial margin // Required: true InitialMargin *float64 `json:"initial_margin"` // The maintenance margin. // Required: true MaintenanceMargin *float64 `json:"maintenance_margin"` // The account's margin balance // Required: true MarginBalance *float64 `json:"margin_balance"` // Options summary delta // Required: true OptionsDelta *float64 `json:"options_delta"` // Options summary gamma // Required: true OptionsGamma *float64 `json:"options_gamma"` // Options profit and Loss // Required: true OptionsPl *float64 `json:"options_pl"` // Options session realized profit and Loss // Required: true OptionsSessionRpl *float64 `json:"options_session_rpl"` // Options session unrealized profit and Loss // Required: true OptionsSessionUpl *float64 `json:"options_session_upl"` // Options summary theta // Required: true OptionsTheta *float64 `json:"options_theta"` // Options summary vega // Required: true OptionsVega *float64 `json:"options_vega"` // When `true` portfolio margining is enabled for user // Required: true PortfolioMarginingEnabled *bool `json:"portfolio_margining_enabled"` // Projected initial margin (for portfolio margining users) ProjectedInitialMargin float64 `json:"projected_initial_margin,omitempty"` // Projected maintenance margin (for portfolio margining users) ProjectedMaintenanceMargin float64 `json:"projected_maintenance_margin,omitempty"` // Session funding // Required: true SessionFunding *float64 `json:"session_funding"` // Session realized profit and loss // Required: true SessionRpl *float64 `json:"session_rpl"` // Session unrealized profit and loss // Required: true SessionUpl *float64 `json:"session_upl"` // Profit and loss // Required: true TotalPl *float64 `json:"total_pl"` }
UserPortfolioNotification user portfolio notification swagger:model user_portfolio_notification
func (*UserPortfolioNotification) MarshalBinary ¶
func (m *UserPortfolioNotification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserPortfolioNotification) UnmarshalBinary ¶
func (m *UserPortfolioNotification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserTrade ¶
type UserTrade struct { // Trade amount. For perpetual and futures - in USD units, for options it is amount of corresponding cryptocurrency contracts, e.g., BTC or ETH. // Required: true Amount *float64 `json:"amount"` // Trade direction of the taker // Required: true Direction Direction `json:"direction"` // User's fee in units of the specified `fee_currency` // Required: true Fee *float64 `json:"fee"` // fee currency // Required: true FeeCurrency Currency `json:"fee_currency"` // Index Price at the moment of trade // Required: true IndexPrice *float64 `json:"index_price"` // instrument name // Required: true InstrumentName InstrumentName `json:"instrument_name"` // Option implied volatility for the price (Option only) Iv float64 `json:"iv,omitempty"` // User defined label (presented only when previously set for order by user) Label string `json:"label,omitempty"` // Optional field (only for trades caused by liquidation): `"M"` when maker side of trade was under liquidation, `"T"` when taker side was under liquidation, `"MT"` when both sides of trade were under liquidation // Enum: [M T MT] Liquidation string `json:"liquidation,omitempty"` // Describes what was role of users order: `"M"` when it was maker order, `"T"` when it was taker order // Enum: [M T] Liquidity string `json:"liquidity,omitempty"` // Always `null`, except for a self-trade which is possible only if self-trading is switched on for the account (in that case this will be id of the maker order of the subscriber) // Required: true MatchingID *string `json:"matching_id"` // Id of the user order (maker or taker), i.e. subscriber's order id that took part in the trade // Required: true OrderID *string `json:"order_id"` // Order type: `"limit`, `"market"`, or `"liquidation"` // Enum: [limit market liquidation] OrderType string `json:"order_type,omitempty"` // The price of the trade // Required: true Price Price `json:"price"` // `true` if the trade is against own order. This can only happen when your account has self-trading enabled. Contact an administrator if you think you need that // Required: true SelfTrade *bool `json:"self_trade"` // state // Required: true State OrderStateInUserTrade `json:"state"` // tick direction // Required: true TickDirection TickDirection `json:"tick_direction"` // The timestamp of the trade // Required: true Timestamp *int64 `json:"timestamp"` // trade id // Required: true TradeID TradeID `json:"trade_id"` // trade seq // Required: true TradeSeq TradeSeq `json:"trade_seq"` }
UserTrade user trade swagger:model user_trade
func (*UserTrade) MarshalBinary ¶
MarshalBinary interface implementation
func (*UserTrade) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type WalletAddressType ¶
type WalletAddressType string
WalletAddressType Address type/purpose, allowed values : `deposit`, `withdrawal`, `transfer` swagger:model wallet_address_type
const ( // WalletAddressTypeDeposit captures enum value "deposit" WalletAddressTypeDeposit WalletAddressType = "deposit" // WalletAddressTypeWithdrawal captures enum value "withdrawal" WalletAddressTypeWithdrawal WalletAddressType = "withdrawal" // WalletAddressTypeTransfer captures enum value "transfer" WalletAddressTypeTransfer WalletAddressType = "transfer" )
type Withdrawal ¶
type Withdrawal struct { // address // Required: true Address CurrencyAddress `json:"address"` // amount // Required: true Amount CurrencyAmount `json:"amount"` // The timestamp (seconds since the Unix epoch, with millisecond precision) of withdrawal confirmation, `null` when not confirmed ConfirmedTimestamp int64 `json:"confirmed_timestamp,omitempty"` // created timestamp CreatedTimestamp Timestamp `json:"created_timestamp,omitempty"` // currency // Required: true Currency Currency `json:"currency"` // fee Fee Fee `json:"fee,omitempty"` // Withdrawal id in Deribit system ID int64 `json:"id,omitempty"` // Id of priority level Priority float64 `json:"priority,omitempty"` // state // Required: true State WithdrawalState `json:"state"` // transaction id // Required: true TransactionID CurrencyTransactionID `json:"transaction_id"` // updated timestamp // Required: true UpdatedTimestamp Timestamp `json:"updated_timestamp"` }
Withdrawal withdrawal swagger:model withdrawal
func (*Withdrawal) MarshalBinary ¶
func (m *Withdrawal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Withdrawal) UnmarshalBinary ¶
func (m *Withdrawal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type WithdrawalState ¶
type WithdrawalState string
WithdrawalState Withdrawal state, allowed values : `unconfirmed`, `confirmed`, `cancelled`, `completed`, `interrupted`, `rejected` swagger:model withdrawal_state
const ( // WithdrawalStateUnconfirmed captures enum value "unconfirmed" WithdrawalStateUnconfirmed WithdrawalState = "unconfirmed" // WithdrawalStateConfirmed captures enum value "confirmed" WithdrawalStateConfirmed WithdrawalState = "confirmed" // WithdrawalStateCancelled captures enum value "cancelled" WithdrawalStateCancelled WithdrawalState = "cancelled" // WithdrawalStateCompleted captures enum value "completed" WithdrawalStateCompleted WithdrawalState = "completed" // WithdrawalStateInterrupted captures enum value "interrupted" WithdrawalStateInterrupted WithdrawalState = "interrupted" // WithdrawalStateRejected captures enum value "rejected" WithdrawalStateRejected WithdrawalState = "rejected" )
Source Files
¶
- address_book_item.go
- address_book_type.go
- advanced.go
- amount.go
- announcement_notification.go
- api.go
- ask_iv.go
- asks.go
- average_price.go
- base_message.go
- best_ask_amount.go
- best_ask_price.go
- best_bid_amount.go
- best_bid_price.go
- bid_iv.go
- bids.go
- book_notification.go
- book_notification_raw.go
- book_state.go
- book_summary.go
- chart_volume.go
- commission.go
- continuation.go
- contract_size.go
- currency.go
- currency_address.go
- currency_amount.go
- currency_detail.go
- currency_pair.go
- currency_portfolio.go
- currency_transaction_id.go
- currency_with_any.go
- current_funding.go
- delivery_price.go
- deposit.go
- deposit_state.go
- deribit_price_index_notification.go
- deribit_price_ranking_notification.go
- direction.go
- error_message.go
- estimated_expiration_price_notification.go
- fee.go
- filled_amount.go
- funding8h.go
- greeks.go
- implied_volatility.go
- implv.go
- index_name.go
- index_price.go
- instrument.go
- instrument_name.go
- interest_rate.go
- key_number_pair.go
- kind.go
- kind_with_any.go
- label.go
- last_price.go
- mark_iv.go
- mark_price.go
- markprice_options_notification.go
- max_price.go
- max_show.go
- min_price.go
- ok_response.go
- open_interest.go
- order.go
- order_id.go
- order_id_initial_margin_pair.go
- order_state.go
- order_state_in_user_trade.go
- order_type.go
- order_type2.go
- original_order_type.go
- perpetual_notification.go
- portfolio.go
- position.go
- post_only.go
- price.go
- private_account_response.go
- private_add_to_address_book_response.go
- private_address_book_response.go
- private_buy_and_sell_response.go
- private_cancel_all_response.go
- private_cancel_response.go
- private_create_subaccount_response.go
- private_deposit_address_response.go
- private_edit_response.go
- private_get_deposits_response.go
- private_get_email_language_response.go
- private_get_margins_response.go
- private_get_open_orders_response.go
- private_get_order_history_response.go
- private_get_order_margin_by_ids_response.go
- private_get_order_state_response.go
- private_get_position_response.go
- private_get_positions_response.go
- private_get_stop_order_history_response.go
- private_get_subaccounts_response.go
- private_get_transfers_response.go
- private_get_user_trades_by_order_response.go
- private_get_user_trades_history_response.go
- private_get_withdrawals_response.go
- private_remove_from_address_book_response.go
- private_settlement_response.go
- private_submit_transfer_response.go
- private_subscribe_response.go
- private_withdraw_response.go
- profit_loss.go
- public_auth_response.go
- public_get_announcements_response.go
- public_get_book_summary_response.go
- public_get_contract_size_response.go
- public_get_currencies_response.go
- public_get_footer_response.go
- public_get_funding_chart_data_response.go
- public_get_historical_volatility_response.go
- public_get_instruments_response.go
- public_get_option_mark_prices_response.go
- public_get_order_book_response.go
- public_get_time_response.go
- public_get_trades_volumes_response.go
- public_get_tradingview_chart_data_response.go
- public_index_response.go
- public_settlement_response.go
- public_test_response.go
- public_ticker_response.go
- public_trade.go
- public_trades_history_response.go
- quantity.go
- quote_notification.go
- quote_price.go
- reduce_only.go
- result_count.go
- settlement.go
- settlement_price.go
- settlement_type.go
- simple_order_type.go
- sorting.go
- state_notification.go
- stats.go
- stop_order_history_record.go
- stop_price.go
- tick_direction.go
- ticker_notification.go
- ticker_notification_with_bids_and_asks.go
- time_in_force.go
- timestamp.go
- timestamp_for_book_notifications.go
- trade_id.go
- trade_seq.go
- trades_volumes.go
- transfer_direction.go
- transfer_id.go
- transfer_item.go
- transfer_other_side.go
- transfer_state.go
- transfer_type.go
- trigger.go
- triggered.go
- underlying_index.go
- underlying_price.go
- usd.go
- user_change.go
- user_portfolio_notification.go
- user_trade.go
- wallet_address_type.go
- withdrawal.go
- withdrawal_state.go