Versions in this module Expand all Collapse all v1 v1.0.3 Apr 24, 2020 v1.0.2 Apr 22, 2020 Changes in this version type OrderBookNotification + PrevChangeID int64 type OrderBookRawNotification + PrevChangeID int64 v1.0.1 Apr 22, 2020 v1.0.0 Apr 22, 2020 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 + State string + TokenType string + type BookSummary struct + AskPrice float64 + BaseCurrency string + BidPrice float64 + CreationTimestamp int64 + High float64 + InstrumentName string + InterestRate float64 + Last float64 + Low float64 + MarkPrice float64 + MidPrice float64 + OpenInterest float64 + QuoteCurrency string + UnderlyingIndex string + UnderlyingPrice float64 + Volume float64 + type BuyParams struct + Advanced string + Amount float64 + InstrumentName string + Label string + MaxShow *float64 + PostOnly bool + Price float64 + ReduceOnly bool + StopPrice float64 + TimeInForce string + Trigger string + 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 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 + DisabledDepositAddressCreation bool + FeePrecision int + MinConfirmations int + MinWithdrawalFee float64 + WithdrawalFee float64 + WithdrawalPriorities []WithdrawalPriority + type Deposit struct + Address string + Amount float64 + Currency string + ReceivedTimestamp int64 + State string + TransactionID string + UpdatedTimestamp int64 + type DepositAddress struct + Address string + CreationTimestamp int64 + 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 EditParams struct + Advanced string + Amount float64 + OrderID string + PostOnly bool + Price float64 + StopPrice float64 + type EditResponse struct + Order Order + Trades []Trade + type EstimatedExpirationPriceNotification struct + IsEstimated bool + Price float64 + Seconds int + 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 [][]float64 + IndexPrice float64 + Interest8H float64 + Max float64 + type GetHistoricalVolatilityParams struct + Currency string + type GetHistoricalVolatilityResponse [][]float64 + 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 int + Currency string + SearchStartTimestamp int + 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 int64 + IncludeOld bool + Kind string + Sorting string + StartTimestamp int64 + 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 + Asks [][]float64 + BestAskAmount float64 + BestAskPrice float64 + BestBidAmount float64 + BestBidPrice float64 + Bids [][]float64 + ChangeID int + CurrentFunding float64 + Funding8H float64 + IndexPrice float64 + InstrumentName string + LastPrice float64 + MarkPrice float64 + MaxPrice float64 + MinPrice float64 + OpenInterest float64 + SettlementPrice float64 + State string + Stats struct{ ... } + Timestamp int64 + 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 + Count int + Currency string + Type string + type GetSettlementHistoryByInstrumentParams struct + Count int + InstrumentName string + Type string + type GetSettlementHistoryResponse struct + Continuation string + Settlements []Settlement + type GetStopOrderHistoryParams struct + Continuation string + Count int + Currency string + InstrumentName string + type GetStopOrderHistoryResponse struct + Continuation string + Entries []StopOrder + type GetSubaccountsParams struct + WithPortfolio bool + type GetTradeVolumesResponse []TradeVolume + type GetTradingviewChartDataParams struct + EndTimestamp int64 + InstrumentName string + Resolution string + StartTimestamp int64 + type GetTradingviewChartDataResponse struct + Close []float64 + High []float64 + Low []float64 + Open []float64 + Status string + Ticks []int64 + 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 HelloParams struct + ClientName string + ClientVersion string + type HelloResponse struct + Version string + type Instrument struct + BaseCurrency string + ContractSize float64 + CreationTimestamp int64 + ExpirationTimestamp int64 + InstrumentName string + IsActive bool + Kind string + MinTradeAmount float64 + OptionType string + QuoteCurrency string + SettlementPeriod string + Strike float64 + TickSize float64 + type MarkpriceOption struct + InstrumentName string + Iv float64 + MarkPrice float64 + type MarkpriceOptionsNotification []MarkpriceOption + type Order struct + API bool + Advanced string + Amount float64 + AveragePrice float64 + Commission float64 + CreationTimestamp int64 + Direction string + FilledAmount float64 + Implv float64 + InstrumentName string + IsLiquidation bool + Label string + LastUpdateTimestamp int64 + MaxShow float64 + OrderID string + OrderState string + OrderType string + PostOnly bool + Price Price + ProfitLoss float64 + ReduceOnly bool + StopPrice float64 + TimeInForce string + Triggered bool + Usd float64 + type OrderBookGroupNotification struct + Asks [][]float64 + Bids [][]float64 + ChangeID int64 + InstrumentName string + Timestamp int64 + type OrderBookNotification struct + Asks []OrderBookNotificationItem + Bids []OrderBookNotificationItem + ChangeID int64 + InstrumentName string + Timestamp int64 + Type string + type OrderBookNotificationItem struct + Action string + Amount float64 + Price float64 + func (item *OrderBookNotificationItem) UnmarshalJSON(b []byte) error + type OrderBookRawNotification struct + Asks []OrderBookNotificationItem + Bids []OrderBookNotificationItem + ChangeID int64 + InstrumentName string + Timestamp int64 + type OrderMargin struct + InitialMargin float64 + OrderID string + type PerpetualNotification struct + Interest float64 + 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 + FuturesPl float64 + FuturesSessionRpl float64 + FuturesSessionUpl float64 + 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 + TotalPl float64 + type Position struct + AveragePrice float64 + Delta float64 + Direction string + EstimatedLiquidationPrice float64 + FloatingProfitLoss float64 + IndexPrice float64 + InitialMargin float64 + InstrumentName string + Kind string + MaintenanceMargin float64 + MarkPrice float64 + OpenOrdersMargin float64 + RealizedProfitLoss float64 + SettlementPrice float64 + Size float64 + SizeCurrency float64 + TotalProfitLoss float64 + type Price float64 + func (p *Price) ToFloat64() float64 + func (p *Price) UnmarshalJSON(data []byte) (err error) + type QuoteNotification struct + BestAskAmount float64 + BestAskPrice float64 + BestBidAmount float64 + BestBidPrice float64 + InstrumentName string + Timestamp int64 + type SellParams struct + Advanced string + Amount float64 + InstrumentName string + Label string + MaxShow *float64 + PostOnly bool + Price float64 + ReduceOnly bool + StopPrice float64 + TimeInForce string + Trigger string + Type string + type SellResponse struct + Order Order + Trades []Trade + 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 + IndexPrice float64 + InstrumentName string + MarkPrice float64 + Position float64 + ProfitLoss float64 + SessionProfitLoss float64 + Timestamp int64 + Type string + type StopOrder struct + Amount float64 + Direction string + InstrumentName string + Offset float64 + OrderID string + OrderState string + Price Price + Request string + StopID string + StopPrice float64 + Timestamp int64 + Trigger string + 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 struct{ ... } + Timestamp int64 + 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 TickerStats + Timestamp int64 + type TickerStats struct + High float64 + Low float64 + Volume float64 + type ToggleNotificationsFromSubaccountParams struct + Sid int + State bool + type ToggleSubaccountLoginParams struct + Sid int + State string + type Trade struct + Amount float64 + Direction string + IndexPrice float64 + InstrumentName string + Iv float64 + Price float64 + TickDirection int + Timestamp int64 + TradeID string + TradeSeq int + type TradeVolume struct + CallsVolume float64 + CurrencyPair string + FuturesVolume float64 + PutsVolume float64 + type TradesNotification []Trade + type Transfer struct + Amount float64 + CreatedTimestamp int64 + Currency string + Direction string + ID int + OtherSide string + State string + Type string + UpdatedTimestamp int64 + type UnsubscribeParams struct + Channels []string + type UnsubscribeResponse []string + type UserChangesNotification struct + Orders []Order + Positions []Position + Trades []UserTrade + type UserOrderNotification []Order + type UserTrade struct + Amount float64 + Direction string + Fee float64 + FeeCurrency string + IndexPrice float64 + InstrumentName string + Liquidity string + MatchingID interface{} + OrderID string + OrderType string + Price float64 + SelfTrade bool + State string + TickDirection int + Timestamp int64 + TradeID string + TradeSeq int + type UserTradesNotification []UserTrade + type WithdrawParams struct + Address string + Amount float64 + Currency string + Priority string + Tfa string + type Withdrawal struct + Address string + Amount float64 + ConfirmedTimestamp *int64 + CreatedTimestamp int64 + Currency string + Fee float64 + ID int + Priority float64 + State string + TransactionID *string + UpdatedTimestamp int64 + type WithdrawalPriority struct + Name string + Value float64