Versions in this module Expand all Collapse all v1 v1.1.2 Sep 30, 2021 v1.1.1 Jul 29, 2021 v1.1.0 Jul 28, 2021 Changes in this version + const DirectionBuy + const DirectionSell + const OrderStateCancelled + const OrderStateFilled + const OrderStateOpen + const OrderStateRejected + const OrderStateUntriggered + const OrderTypeLimit + const OrderTypeMarket + const OrderTypeStopLimit + const OrderTypeStopMarket + const TriggerTypeIndexPrice + const TriggerTypeLastPrice + const TriggerTypeMarkPrice + type AccountSummary struct + AvailableFunds float64 + AvailableWithdrawalFunds float64 + Balance float64 + Currency string + DeltaTotal float64 + DepositAddress string + Email string + Equity float64 + FuturesPl float64 + FuturesSessionRpl float64 + FuturesSessionUpl float64 + ID int + InitialMargin float64 + MaintenanceMargin float64 + MarginBalance float64 + OptionsDelta float64 + OptionsGamma float64 + OptionsPl float64 + OptionsSessionRpl float64 + OptionsSessionUpl float64 + OptionsTheta float64 + OptionsVega float64 + PortfolioMarginingEnabled bool + SessionFunding float64 + SessionRpl float64 + SessionUpl float64 + SystemName string + TfaEnabled bool + TotalPl float64 + Type string + Username string + type Announcement struct + Body string + ID int64 + Important bool + PublicationTime int64 + Title string + type AnnouncementsNotification struct + Action string + Body string + Date int64 + ID int + Important bool + Number int + Title string + type AuthResponse struct + AccessToken string + ExpiresIn int + RefreshToken string + Scope string + TokenType string + type BookSummary struct + AskPrice *float64 + BaseCurrency string + BidPrice *float64 + CreationTimestamp uint64 + CurrentFunding float64 + EstimatedDeliveryPrice float64 + Funding8H float64 + High float64 + InstrumentName string + InterestRate float64 + Last *float64 + Low *float64 + MarkPrice float64 + MidPrice *float64 + OpenInterest float64 + PriceChange *float64 + QuoteCurrency string + UnderlyingIndex string + UnderlyingPrice float64 + Volume float64 + VolumeUsd float64 + type BuyParams struct + Advanced string + Amount float64 + InstrumentName string + Label string + MMP bool + MaxShow *float64 + PostOnly bool + Price float64 + ReduceOnly bool + RejectPostOnly bool + TimeInForce string + Trigger string + TriggerPrice float64 + Type string + type BuyResponse struct + Order Order + Trades []Trade + type CancelAllByCurrencyParams struct + Currency string + Kind string + Type string + type CancelAllByInstrumentParams struct + InstrumentName string + Type string + type CancelAllByLabelParams struct + Label string + type CancelParams struct + OrderID string + type CancelTransferByIDParams struct + Currency string + ID int + Tfa string + type CancelWithdrawalParams struct + Currency string + ID int + type ChangeSubaccountNameParams struct + Name string + Sid int + type ClientCredentialsParams struct + ClientID string + ClientSecret string + GrantType string + type ClosePositionParams struct + InstrumentName string + Price float64 + Type string + type ClosePositionResponse struct + Order Order + Trades []Trade + type CreateDepositAddressParams struct + Currency string + type Currency struct + CoinType string + Currency string + CurrencyLong string + FeePrecision int + MinConfirmations int + MinWithdrawalFee float64 + WithdrawalFee float64 + WithdrawalPriorities []WithdrawalPriority + type Deposit struct + Address string + Amount float64 + Currency string + ReceivedTimestamp uint64 + State string + TransactionID string + UpdatedTimestamp uint64 + type DepositAddress struct + Address string + CreationTimestamp uint64 + Currency string + Type string + type DeribitPriceIndexNotification struct + IndexName string + Price float64 + Timestamp int64 + type DeribitPriceRanking struct + Enabled bool + Identifier string + Price float64 + Timestamp int64 + Weight float64 + type DeribitPriceRankingNotification []DeribitPriceRanking + type DisableTfaForSubaccountParams struct + Sid int + type EditByLabelParams struct + Advanced string + Amount float64 + InstrumentName string + Label string + MMP bool + PostOnly bool + Price float64 + ReduceOnly bool + RejectPostOnly bool + TriggerPrice float64 + type EditParams struct + Advanced string + Amount float64 + MMP bool + OrderID string + PostOnly bool + Price float64 + ReduceOnly bool + RejectPostOnly bool + TriggerPrice float64 + type EditResponse struct + Order Order + Trades []Trade + type EstimatedExpirationPriceNotification struct + IsEstimated bool + Price float64 + Seconds uint64 + type FundingChartData struct + IndexPrice float64 + Interest8H float64 + Timestamp uint64 + type GetAccountSummaryParams struct + Currency string + Extended bool + type GetBookSummaryByCurrencyParams struct + Currency string + Kind string + type GetBookSummaryByInstrumentParams struct + InstrumentName string + type GetContractSizeParams struct + InstrumentName string + type GetContractSizeResponse struct + ContractSize int + type GetCurrentDepositAddressParams struct + Currency string + type GetDepositsParams struct + Count int + Currency string + Offset int + type GetDepositsResponse struct + Count int + Data []Deposit + type GetFundingChartDataParams struct + InstrumentName string + Length string + type GetFundingChartDataResponse struct + CurrentInterest float64 + Data []FundingChartData + Interest8H float64 + type GetHistoricalVolatilityParams struct + Currency string + type GetHistoricalVolatilityResponse []HistoricalVolatility + type GetIndexParams struct + Currency string + type GetIndexResponse struct + BTC float64 + ETH float64 + Edp float64 + type GetInstrumentsParams struct + Currency string + Expired bool + Kind string + type GetLastSettlementsByCurrencyParams struct + Continuation string + Count uint64 + Currency string + SearchStartTimestamp uint64 + Type string + type GetLastSettlementsByInstrumentParams struct + Continuation string + Count int + InstrumentName string + SearchStartTimestamp int + Type string + type GetLastSettlementsResponse struct + Continuation string + Settlements []Settlement + type GetLastTradesByCurrencyAndTimeParams struct + Count int + Currency string + EndTimestamp uint64 + IncludeOld bool + Kind string + Sorting string + StartTimestamp uint64 + type GetLastTradesByCurrencyParams struct + Count int + Currency string + EndID string + IncludeOld bool + Kind string + Sorting string + StartID string + type GetLastTradesByInstrumentAndTimeParams struct + Count int + EndTimestamp int + IncludeOld bool + InstrumentName string + Sorting string + StartTimestamp int + type GetLastTradesByInstrumentParams struct + Count int + EndSeq int + IncludeOld bool + InstrumentName string + Sorting string + StartSeq int + type GetLastTradesResponse struct + HasMore bool + Trades []Trade + type GetMarginsParams struct + Amount float64 + InstrumentName string + Price float64 + type GetMarginsResponse struct + Buy float64 + MaxPrice float64 + MinPrice float64 + Sell float64 + type GetOpenOrdersByCurrencyParams struct + Currency string + Kind string + Type string + type GetOpenOrdersByInstrumentParams struct + InstrumentName string + Type string + type GetOrderBookParams struct + Depth int + InstrumentName string + type GetOrderBookResponse struct + AskIV float64 + Asks [][]float64 + BestAskAmount float64 + BestAskPrice float64 + BestBidAmount float64 + BestBidPrice float64 + BidIV float64 + Bids [][]float64 + ChangeID uint64 + CurrentFunding float64 + DeliveryPrice float64 + Funding8H float64 + Greeks Greeks + IndexPrice float64 + InstrumentName string + InterestRate float64 + LastPrice float64 + MarkIV float64 + MarkPrice float64 + MaxPrice float64 + MinPrice float64 + OpenInterest float64 + SettlementPrice float64 + State string + Stats Stats + Timestamp uint64 + UnderlyingIndex float64 + UnderlyingPrice float64 + type GetOrderHistoryByCurrencyParams struct + Count int + Currency string + IncludeOld bool + IncludeUnfilled bool + Kind string + Offset int + type GetOrderHistoryByInstrumentParams struct + Count int + IncludeOld bool + IncludeUnfilled bool + InstrumentName string + Offset int + type GetOrderMarginByIDsParams struct + IDs []string + type GetOrderMarginByIDsResponse []OrderMargin + type GetOrderStateParams struct + OrderID string + type GetPositionParams struct + InstrumentName string + type GetPositionsParams struct + Currency string + Kind string + type GetSettlementHistoryByCurrencyParams struct + Continuation string + Count int + Currency string + SearchStartTimestamp uint64 + Type string + type GetSettlementHistoryByInstrumentParams struct + Continuation string + Count int + InstrumentName string + SearchStartTimestamp uint64 + Type string + type GetSettlementHistoryResponse struct + Continuation string + Settlements []Settlement + type GetSubaccountsParams struct + WithPortfolio bool + type GetTradeVolumesParams struct + Extended bool + type GetTradeVolumesResponse []TradeVolume + type GetTradingviewChartDataParams struct + EndTimestamp uint64 + InstrumentName string + Resolution string + StartTimestamp uint64 + type GetTradingviewChartDataResponse struct + Close []float64 + Cost []float64 + High []float64 + Low []float64 + Open []float64 + Status string + Ticks []uint64 + Volume []float64 + type GetTransfersParams struct + Count int + Currency string + Offset int + type GetTransfersResponse struct + Count int + Data []Transfer + type GetUserTradesByCurrencyAndTimeParams struct + Count int + Currency string + EndTimestamp int + IncludeOld bool + Kind string + Sorting string + StartTimestamp int + type GetUserTradesByCurrencyParams struct + Count int + Currency string + EndID string + IncludeOld bool + Kind string + Sorting string + StartID string + type GetUserTradesByInstrumentAndTimeParams struct + Count int + EndTimestamp int + IncludeOld bool + InstrumentName string + Sorting string + StartTimestamp int + type GetUserTradesByInstrumentParams struct + Count int + EndSeq int + IncludeOld bool + InstrumentName string + Sorting string + StartSeq int + type GetUserTradesByOrderParams struct + OrderID string + Sorting string + type GetUserTradesResponse struct + HasMore bool + Trades []UserTrade + type GetWithdrawalsParams struct + Count int + Currency string + Offset int + type Greeks struct + Delta float64 + Gamma float64 + RHO float64 + Theta float64 + Vega float64 + type HelloParams struct + ClientName string + ClientVersion string + type HelloResponse struct + Version string + type HistoricalVolatility struct + Timestamp uint64 + Value float64 + func (h *HistoricalVolatility) UnmarshalJSON(buf []byte) error + type Instrument struct + BaseCurrency string + BlockTradeCommission float64 + ContractSize uint64 + CreationTimestamp uint64 + ExpirationTimestamp uint64 + InstrumentName string + IsActive bool + Kind string + Leverage int + MakerCommission float64 + MinTradeAmount float64 + OptionType string + QuoteCurrency string + SettlementPeriod string + Strike float64 + TakerCommission float64 + TickSize float64 + type MarkpriceOption struct + InstrumentName string + Iv float64 + MarkPrice float64 + type MarkpriceOptionsNotification []MarkpriceOption + type Order struct + API bool + Advanced string + Amount float64 + AppName string + AutoReplaced bool + AveragePrice float64 + BlockTrade bool + Commission float64 + CreationTimestamp int64 + Direction string + FilledAmount float64 + Implv float64 + InstrumentName string + IsLiquidation bool + Label string + LastUpdateTimestamp int64 + MMPCancelled bool + MaxShow float64 + OrderID string + OrderState string + OrderType string + OriginalOrderType string + PostOnly bool + Price float64 + ProfitLoss float64 + ReduceOnly bool + Replaced bool + TimeInForce string + TriggedPrice float64 + Trigger string + TriggerOrderID string + Triggered bool + USD float64 + Web bool + type OrderBookGroupNotification struct + Asks [][]float64 + Bids [][]float64 + ChangeID int64 + InstrumentName string + Timestamp int64 + type OrderBookNotification struct + Asks []OrderBookNotificationItem + Bids []OrderBookNotificationItem + ChangeID int64 + InstrumentName string + PrevChangeID int64 + Timestamp int64 + Type string + type OrderBookNotificationItem struct + Action string + Amount float64 + Price float64 + func (item *OrderBookNotificationItem) UnmarshalJSON(buf []byte) error + type OrderBookRawNotification struct + Asks []OrderBookNotificationItem + Bids []OrderBookNotificationItem + ChangeID int64 + InstrumentName string + PrevChangeID int64 + Timestamp int64 + type OrderMargin struct + InitialMargin float64 + OrderID string + type PerpetualNotification struct + IndexPrice float64 + Interest float64 + Timestamp uint64 + type Portfolio struct + AvailableFunds int + AvailableWithdrawalFunds int + Balance int + Currency string + Equity int + InitialMargin int + MaintenanceMargin int + MarginBalance int + type PortfolioNotification struct + AvailableFunds float64 + AvailableWithdrawalFunds float64 + Balance float64 + Currency string + DeltaTotal float64 + Equity float64 + EstimatedLiquidationRatio float64 + FuturesPl float64 + FuturesSessionRpl float64 + FuturesSessionUpl float64 + InitialMargin float64 + MaintenanceMargin float64 + MarginBalance float64 + OptionsDelta float64 + OptionsGamma float64 + OptionsPl float64 + OptionsSessionRpl float64 + OptionsSessionUpl float64 + OptionsTheta float64 + OptionsValue float64 + OptionsVega float64 + PortfolioMarginingEnabled bool + ProjectedDeltaTotal float64 + ProjectedInitialMargin float64 + ProjectedMaintenanceMargin float64 + SessionRpl float64 + SessionUpl float64 + TotalPl float64 + type Position struct + AveragePrice float64 + AveragePriceUSD float64 + Delta float64 + Direction string + EstimatedLiquidationPrice float64 + FloatingProfitLoss float64 + FloatingProfitLossUSD float64 + Gamma float64 + IndexPrice float64 + InitialMargin float64 + InstrumentName string + Kind string + Leverage int + MaintenanceMargin float64 + MarkPrice float64 + OpenOrdersMargin float64 + RealizedFunding float64 + RealizedProfitLoss float64 + SettlementPrice float64 + Size float64 + SizeCurrency float64 + Theta float64 + TotalProfitLoss float64 + Vega float64 + type QuoteNotification struct + BestAskAmount float64 + BestAskPrice *float64 + BestBidAmount float64 + BestBidPrice *float64 + InstrumentName string + Timestamp uint64 + type SellParams struct + Advanced string + Amount float64 + InstrumentName string + Label string + MMP bool + MaxShow *float64 + PostOnly bool + Price float64 + ReduceOnly bool + RejectPostOnly bool + TimeInForce string + Trigger string + TriggerPrice float64 + Type string + type SellResponse struct + Order Order + Trades []Trade + type SessionParams struct + Scope string + type SetAnnouncementAsReadParams struct + AnnouncementID int + type SetEmailForSubaccountParams struct + Email string + Sid int + type SetEmailLanguageParams struct + Language string + type SetHeartbeatParams struct + Interval float64 + type SetPasswordForSubaccountParams struct + Password string + Sid int + type Settlement struct + Funded float64 + Funding float64 + IndexPrice float64 + InstrumentName string + MarkPrice float64 + Position float64 + ProfitLoss float64 + SessionBankrupcy float64 + SessionProfitLoss float64 + SessionTax float64 + SessionTaxRate float64 + Socialized float64 + Timestamp uint64 + Type string + type Stats struct + High float64 + Low float64 + PriceChange *float64 + Volume float64 + type Subaccount struct + Email string + ID int + IsPassword bool + LoginEnabled bool + Portfolio struct{ ... } + ReceiveNotifications bool + SystemName string + TfaEnabled bool + Type string + Username string + type SubscribeParams struct + Channels []string + type SubscribeResponse []string + type TestResponse struct + Version string + type TickerNotification struct + BestAskAmount float64 + BestAskPrice *float64 + BestBidAmount float64 + BestBidPrice *float64 + CurrentFunding float64 + Funding8H float64 + IndexPrice float64 + InstrumentName string + LastPrice float64 + MarkPrice float64 + MaxPrice float64 + MinPrice float64 + OpenInterest float64 + SettlementPrice float64 + State string + Stats Stats + Timestamp uint64 + type TickerParams struct + InstrumentName string + type TickerResponse struct + BestAskAmount float64 + BestAskPrice float64 + BestBidAmount float64 + BestBidPrice float64 + CurrentFunding float64 + Funding8H float64 + IndexPrice float64 + InstrumentName string + LastPrice float64 + MarkPrice float64 + MaxPrice float64 + MinPrice float64 + OpenInterest float64 + SettlementPrice float64 + State string + Stats Stats + Timestamp int64 + type ToggleNotificationsFromSubaccountParams struct + Sid int + State bool + type ToggleSubaccountLoginParams struct + Sid int + State string + type Trade struct + Amount float64 + BlockTradeID string + Direction string + IV float64 + IndexPrice float64 + InstrumentName string + Liquidation string + MarkPrice float64 + Price float64 + TickDirection int + Timestamp uint64 + TradeID string + TradeSeq uint64 + type TradeVolume struct + CallsVolume float64 + CallsVolume30D float64 + CallsVolume7D float64 + CurrencyPair string + FuturesVolume float64 + FuturesVolume30D float64 + FuturesVolume7D float64 + PutsVolume float64 + PutsVolume30D float64 + PutsVolume7D float64 + type TradesNotification []Trade + type Transfer struct + Amount float64 + CreatedTimestamp uint64 + Currency string + Direction string + ID int + OtherSide string + State string + Type string + UpdatedTimestamp uint64 + type UnsubscribeParams struct + Channels []string + type UnsubscribeResponse []string + type UserChangesNotification struct + InstrumentName string + Orders []Order + Positions []Position + Trades []UserTrade + type UserOrderNotification []Order + type UserTrade struct + Amount float64 + BlockTradeID string + Direction string + Fee float64 + FeeCurrency string + IV float64 + IndexPrice float64 + InstrumentName string + Label string + Liquidation string + Liquidity string + MarkPrice float64 + MatchingID *string + OrderID string + OrderType string + PostOnly bool + Price float64 + ProfitLost float64 + ReduceOnly bool + SelfTrade bool + State string + TickDirection int + Timestamp uint64 + TradeID string + TradeSeq uint64 + UnderlyingPrice float64 + type UserTradesNotification []UserTrade + type WithdrawParams struct + Address string + Amount float64 + Currency string + Priority string + Tfa string + type Withdrawal struct + Address string + Amount float64 + ConfirmedTimestamp *uint64 + CreatedTimestamp uint64 + Currency string + Fee float64 + ID uint64 + Priority float64 + State string + TransactionID *string + UpdatedTimestamp uint64 + type WithdrawalPriority struct + Name string + Value float64