Documentation
¶
Index ¶
- Constants
- type APIKey
- type AccessToken
- type Affiliate
- type Announcement
- type Chat
- type ChatChannel
- type ConnectedUsers
- type Error
- type ErrorError
- type Execution
- type Funding
- type IndexComposite
- type Instrument
- type InstrumentInterval
- type Insurance
- type Leaderboard
- type Liquidation
- type Margin
- type Notification
- type Order
- type OrderBookL2
- type Position
- type Quote
- type Settlement
- type Stats
- type StatsHistory
- type StatsUSD
- type Trade
- type TradeBin
- type Transaction
- type User
- type UserCommission
- type UserPreferences
- type Wallet
- type XAny
Constants ¶
const ( // NotificationTypeSuccess captures enum value "success" NotificationTypeSuccess string = "success" // NotificationTypeError captures enum value "error" NotificationTypeError string = "error" // NotificationTypeInfo captures enum value "info" NotificationTypeInfo string = "info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { // cidr // Max Length: 18 Cidr string `json:"cidr,omitempty"` // created // Format: date-time Created strfmt.DateTime `json:"created,omitempty"` // enabled Enabled *bool `json:"enabled,omitempty"` // id // Required: true // Max Length: 24 ID *string `json:"id"` // name // Required: true // Max Length: 64 Name *string `json:"name"` // nonce // Required: true Nonce *int64 `json:"nonce"` // permissions Permissions []XAny `json:"permissions"` // secret // Required: true // Max Length: 48 Secret *string `json:"secret"` // user Id // Required: true UserID *int32 `json:"userId"` }
APIKey Persistent API Keys for Developers swagger:model APIKey
func (*APIKey) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIKey) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AccessToken ¶
type AccessToken struct { // created // Format: date-time Created strfmt.DateTime `json:"created,omitempty"` // id // Required: true ID *string `json:"id"` // time to live in seconds (2 weeks by default) TTL *float64 `json:"ttl,omitempty"` // user Id UserID float64 `json:"userId,omitempty"` }
AccessToken access token swagger:model AccessToken
func (*AccessToken) MarshalBinary ¶
func (m *AccessToken) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccessToken) UnmarshalBinary ¶
func (m *AccessToken) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Affiliate ¶
type Affiliate struct { // account // Required: true Account *int64 `json:"account"` // currency // Required: true Currency *string `json:"currency"` // exec comm ExecComm int64 `json:"execComm,omitempty"` // exec turnover ExecTurnover int64 `json:"execTurnover,omitempty"` // payout pcnt PayoutPcnt float64 `json:"payoutPcnt,omitempty"` // pending payout PendingPayout int64 `json:"pendingPayout,omitempty"` // prev comm PrevComm int64 `json:"prevComm,omitempty"` // prev payout PrevPayout int64 `json:"prevPayout,omitempty"` // prev timestamp // Format: date-time PrevTimestamp strfmt.DateTime `json:"prevTimestamp,omitempty"` // prev turnover PrevTurnover int64 `json:"prevTurnover,omitempty"` // referrer account ReferrerAccount float64 `json:"referrerAccount,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // total comm TotalComm int64 `json:"totalComm,omitempty"` // total referrals TotalReferrals int64 `json:"totalReferrals,omitempty"` // total turnover TotalTurnover int64 `json:"totalTurnover,omitempty"` }
Affiliate affiliate swagger:model Affiliate
func (*Affiliate) MarshalBinary ¶
MarshalBinary interface implementation
func (*Affiliate) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Announcement ¶
type Announcement struct { // content Content string `json:"content,omitempty"` // date // Format: date-time Date strfmt.DateTime `json:"date,omitempty"` // id // Required: true ID *int32 `json:"id"` // link Link string `json:"link,omitempty"` // title Title string `json:"title,omitempty"` }
Announcement Public Announcements swagger:model Announcement
func (*Announcement) MarshalBinary ¶
func (m *Announcement) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Announcement) UnmarshalBinary ¶
func (m *Announcement) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Chat ¶
type Chat struct { // channel ID ChannelID float64 `json:"channelID,omitempty"` // date // Required: true // Format: date-time Date *strfmt.DateTime `json:"date"` // from bot FromBot *bool `json:"fromBot,omitempty"` // html // Required: true HTML *string `json:"html"` // id ID int32 `json:"id,omitempty"` // message // Required: true Message *string `json:"message"` // user // Required: true User *string `json:"user"` }
Chat Trollbox Data swagger:model Chat
func (*Chat) MarshalBinary ¶
MarshalBinary interface implementation
func (*Chat) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ChatChannel ¶
type ChatChannel struct { // id ID int32 `json:"id,omitempty"` // name // Required: true Name *string `json:"name"` }
ChatChannel chat channel swagger:model ChatChannel
func (*ChatChannel) MarshalBinary ¶
func (m *ChatChannel) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChatChannel) UnmarshalBinary ¶
func (m *ChatChannel) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ConnectedUsers ¶
type ConnectedUsers struct { // bots Bots int32 `json:"bots,omitempty"` // users Users int32 `json:"users,omitempty"` }
ConnectedUsers connected users swagger:model ConnectedUsers
func (*ConnectedUsers) MarshalBinary ¶
func (m *ConnectedUsers) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ConnectedUsers) UnmarshalBinary ¶
func (m *ConnectedUsers) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // error // Required: true Error *ErrorError `json:"error"` }
Error error swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorError ¶
type ErrorError struct { // message Message string `json:"message,omitempty"` // name Name string `json:"name,omitempty"` }
ErrorError error error swagger:model ErrorError
func (*ErrorError) MarshalBinary ¶
func (m *ErrorError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorError) UnmarshalBinary ¶
func (m *ErrorError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Execution ¶
type Execution struct { // account Account int64 `json:"account,omitempty"` // avg px AvgPx float64 `json:"avgPx,omitempty"` // cl ord ID ClOrdID string `json:"clOrdID,omitempty"` // cl ord link ID ClOrdLinkID string `json:"clOrdLinkID,omitempty"` // commission Commission float64 `json:"commission,omitempty"` // contingency type ContingencyType string `json:"contingencyType,omitempty"` // cum qty CumQty int64 `json:"cumQty,omitempty"` // currency Currency string `json:"currency,omitempty"` // display qty DisplayQty int64 `json:"displayQty,omitempty"` // ex destination ExDestination string `json:"exDestination,omitempty"` // exec comm ExecComm int64 `json:"execComm,omitempty"` // exec cost ExecCost int64 `json:"execCost,omitempty"` // exec ID // Required: true ExecID *string `json:"execID"` // exec inst ExecInst string `json:"execInst,omitempty"` // exec type ExecType string `json:"execType,omitempty"` // foreign notional ForeignNotional float64 `json:"foreignNotional,omitempty"` // home notional HomeNotional float64 `json:"homeNotional,omitempty"` // last liquidity ind LastLiquidityInd string `json:"lastLiquidityInd,omitempty"` // last mkt LastMkt string `json:"lastMkt,omitempty"` // last px LastPx float64 `json:"lastPx,omitempty"` // last qty LastQty int64 `json:"lastQty,omitempty"` // leaves qty LeavesQty int64 `json:"leavesQty,omitempty"` // multi leg reporting type MultiLegReportingType string `json:"multiLegReportingType,omitempty"` // ord rej reason OrdRejReason string `json:"ordRejReason,omitempty"` // ord status OrdStatus string `json:"ordStatus,omitempty"` // ord type OrdType string `json:"ordType,omitempty"` // order ID OrderID string `json:"orderID,omitempty"` // order qty OrderQty int64 `json:"orderQty,omitempty"` // peg offset value PegOffsetValue float64 `json:"pegOffsetValue,omitempty"` // peg price type PegPriceType string `json:"pegPriceType,omitempty"` // price Price float64 `json:"price,omitempty"` // settl currency SettlCurrency string `json:"settlCurrency,omitempty"` // side Side string `json:"side,omitempty"` // simple cum qty SimpleCumQty float64 `json:"simpleCumQty,omitempty"` // simple leaves qty SimpleLeavesQty float64 `json:"simpleLeavesQty,omitempty"` // simple order qty SimpleOrderQty float64 `json:"simpleOrderQty,omitempty"` // stop px StopPx float64 `json:"stopPx,omitempty"` // symbol Symbol string `json:"symbol,omitempty"` // text Text string `json:"text,omitempty"` // time in force TimeInForce string `json:"timeInForce,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // trade publish indicator TradePublishIndicator string `json:"tradePublishIndicator,omitempty"` // transact time // Format: date-time TransactTime strfmt.DateTime `json:"transactTime,omitempty"` // trd match ID TrdMatchID string `json:"trdMatchID,omitempty"` // triggered Triggered string `json:"triggered,omitempty"` // underlying last px UnderlyingLastPx float64 `json:"underlyingLastPx,omitempty"` // working indicator WorkingIndicator bool `json:"workingIndicator,omitempty"` }
Execution Raw Order and Balance Data swagger:model Execution
func (*Execution) MarshalBinary ¶
MarshalBinary interface implementation
func (*Execution) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Funding ¶
type Funding struct { // funding interval // Format: date-time FundingInterval strfmt.DateTime `json:"fundingInterval,omitempty"` // funding rate FundingRate float64 `json:"fundingRate,omitempty"` // funding rate daily FundingRateDaily float64 `json:"fundingRateDaily,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` }
Funding Swap Funding History swagger:model Funding
func (*Funding) MarshalBinary ¶
MarshalBinary interface implementation
func (*Funding) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type IndexComposite ¶
type IndexComposite struct { // index symbol IndexSymbol string `json:"indexSymbol,omitempty"` // last price LastPrice float64 `json:"lastPrice,omitempty"` // logged // Format: date-time Logged strfmt.DateTime `json:"logged,omitempty"` // reference Reference string `json:"reference,omitempty"` // symbol Symbol string `json:"symbol,omitempty"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` // weight Weight float64 `json:"weight,omitempty"` }
IndexComposite index composite swagger:model IndexComposite
func (*IndexComposite) MarshalBinary ¶
func (m *IndexComposite) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IndexComposite) UnmarshalBinary ¶
func (m *IndexComposite) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Instrument ¶
type Instrument struct { // ask price AskPrice float64 `json:"askPrice,omitempty"` // bankrupt limit down price BankruptLimitDownPrice float64 `json:"bankruptLimitDownPrice,omitempty"` // bankrupt limit up price BankruptLimitUpPrice float64 `json:"bankruptLimitUpPrice,omitempty"` // bid price BidPrice float64 `json:"bidPrice,omitempty"` // buy leg BuyLeg string `json:"buyLeg,omitempty"` // calc interval // Format: date-time CalcInterval strfmt.DateTime `json:"calcInterval,omitempty"` // capped Capped bool `json:"capped,omitempty"` // closing timestamp // Format: date-time ClosingTimestamp strfmt.DateTime `json:"closingTimestamp,omitempty"` // deleverage Deleverage bool `json:"deleverage,omitempty"` // expiry // Format: date-time Expiry strfmt.DateTime `json:"expiry,omitempty"` // fair basis FairBasis float64 `json:"fairBasis,omitempty"` // fair basis rate FairBasisRate float64 `json:"fairBasisRate,omitempty"` // fair method FairMethod string `json:"fairMethod,omitempty"` // fair price FairPrice float64 `json:"fairPrice,omitempty"` // front // Format: date-time Front strfmt.DateTime `json:"front,omitempty"` // funding base symbol FundingBaseSymbol string `json:"fundingBaseSymbol,omitempty"` // funding interval // Format: date-time FundingInterval strfmt.DateTime `json:"fundingInterval,omitempty"` // funding premium symbol FundingPremiumSymbol string `json:"fundingPremiumSymbol,omitempty"` // funding quote symbol FundingQuoteSymbol string `json:"fundingQuoteSymbol,omitempty"` // funding rate FundingRate float64 `json:"fundingRate,omitempty"` // funding timestamp // Format: date-time FundingTimestamp strfmt.DateTime `json:"fundingTimestamp,omitempty"` // has liquidity HasLiquidity bool `json:"hasLiquidity,omitempty"` // high price HighPrice float64 `json:"highPrice,omitempty"` // impact ask price ImpactAskPrice float64 `json:"impactAskPrice,omitempty"` // impact bid price ImpactBidPrice float64 `json:"impactBidPrice,omitempty"` // impact mid price ImpactMidPrice float64 `json:"impactMidPrice,omitempty"` // indicative funding rate IndicativeFundingRate float64 `json:"indicativeFundingRate,omitempty"` // indicative settle price IndicativeSettlePrice float64 `json:"indicativeSettlePrice,omitempty"` // indicative tax rate IndicativeTaxRate float64 `json:"indicativeTaxRate,omitempty"` // init margin InitMargin float64 `json:"initMargin,omitempty"` // insurance fee InsuranceFee float64 `json:"insuranceFee,omitempty"` // inverse leg InverseLeg string `json:"inverseLeg,omitempty"` // is inverse IsInverse bool `json:"isInverse,omitempty"` // is quanto IsQuanto bool `json:"isQuanto,omitempty"` // last change pcnt LastChangePcnt float64 `json:"lastChangePcnt,omitempty"` // last price LastPrice float64 `json:"lastPrice,omitempty"` // last price protected LastPriceProtected float64 `json:"lastPriceProtected,omitempty"` // last tick direction LastTickDirection string `json:"lastTickDirection,omitempty"` // limit Limit float64 `json:"limit,omitempty"` // limit down price LimitDownPrice float64 `json:"limitDownPrice,omitempty"` // limit up price LimitUpPrice float64 `json:"limitUpPrice,omitempty"` // listing // Format: date-time Listing strfmt.DateTime `json:"listing,omitempty"` // lot size LotSize int64 `json:"lotSize,omitempty"` // low price LowPrice float64 `json:"lowPrice,omitempty"` // maint margin MaintMargin float64 `json:"maintMargin,omitempty"` // maker fee MakerFee float64 `json:"makerFee,omitempty"` // mark method MarkMethod string `json:"markMethod,omitempty"` // mark price MarkPrice float64 `json:"markPrice,omitempty"` // max order qty MaxOrderQty int64 `json:"maxOrderQty,omitempty"` // max price MaxPrice float64 `json:"maxPrice,omitempty"` // mid price MidPrice float64 `json:"midPrice,omitempty"` // multiplier Multiplier int64 `json:"multiplier,omitempty"` // open interest OpenInterest int64 `json:"openInterest,omitempty"` // open value OpenValue int64 `json:"openValue,omitempty"` // opening timestamp // Format: date-time OpeningTimestamp strfmt.DateTime `json:"openingTimestamp,omitempty"` // option multiplier OptionMultiplier float64 `json:"optionMultiplier,omitempty"` // option strike pcnt OptionStrikePcnt float64 `json:"optionStrikePcnt,omitempty"` // option strike price OptionStrikePrice float64 `json:"optionStrikePrice,omitempty"` // option strike round OptionStrikeRound float64 `json:"optionStrikeRound,omitempty"` // option underlying price OptionUnderlyingPrice float64 `json:"optionUnderlyingPrice,omitempty"` // position currency PositionCurrency string `json:"positionCurrency,omitempty"` // prev close price PrevClosePrice float64 `json:"prevClosePrice,omitempty"` // prev price24h PrevPrice24h float64 `json:"prevPrice24h,omitempty"` // prev total turnover PrevTotalTurnover int64 `json:"prevTotalTurnover,omitempty"` // prev total volume PrevTotalVolume int64 `json:"prevTotalVolume,omitempty"` // publish interval // Format: date-time PublishInterval strfmt.DateTime `json:"publishInterval,omitempty"` // publish time // Format: date-time PublishTime strfmt.DateTime `json:"publishTime,omitempty"` // quote currency QuoteCurrency string `json:"quoteCurrency,omitempty"` // quote to settle multiplier QuoteToSettleMultiplier int64 `json:"quoteToSettleMultiplier,omitempty"` // rebalance interval // Format: date-time RebalanceInterval strfmt.DateTime `json:"rebalanceInterval,omitempty"` // rebalance timestamp // Format: date-time RebalanceTimestamp strfmt.DateTime `json:"rebalanceTimestamp,omitempty"` // reference Reference string `json:"reference,omitempty"` // reference symbol ReferenceSymbol string `json:"referenceSymbol,omitempty"` // relist interval // Format: date-time RelistInterval strfmt.DateTime `json:"relistInterval,omitempty"` // risk limit RiskLimit int64 `json:"riskLimit,omitempty"` // risk step RiskStep int64 `json:"riskStep,omitempty"` // root symbol RootSymbol string `json:"rootSymbol,omitempty"` // sell leg SellLeg string `json:"sellLeg,omitempty"` // session interval // Format: date-time SessionInterval strfmt.DateTime `json:"sessionInterval,omitempty"` // settl currency SettlCurrency string `json:"settlCurrency,omitempty"` // settle // Format: date-time Settle strfmt.DateTime `json:"settle,omitempty"` // settled price SettledPrice float64 `json:"settledPrice,omitempty"` // settlement fee SettlementFee float64 `json:"settlementFee,omitempty"` // state State string `json:"state,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // taker fee TakerFee float64 `json:"takerFee,omitempty"` // taxed Taxed bool `json:"taxed,omitempty"` // tick size TickSize float64 `json:"tickSize,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // total turnover TotalTurnover int64 `json:"totalTurnover,omitempty"` // total volume TotalVolume int64 `json:"totalVolume,omitempty"` // turnover Turnover int64 `json:"turnover,omitempty"` // turnover24h Turnover24h int64 `json:"turnover24h,omitempty"` // typ Typ string `json:"typ,omitempty"` // underlying Underlying string `json:"underlying,omitempty"` // underlying symbol UnderlyingSymbol string `json:"underlyingSymbol,omitempty"` // underlying to position multiplier UnderlyingToPositionMultiplier int64 `json:"underlyingToPositionMultiplier,omitempty"` // underlying to settle multiplier UnderlyingToSettleMultiplier int64 `json:"underlyingToSettleMultiplier,omitempty"` // volume Volume int64 `json:"volume,omitempty"` // volume24h Volume24h int64 `json:"volume24h,omitempty"` // vwap Vwap float64 `json:"vwap,omitempty"` }
Instrument Tradeable Contracts, Indices, and History 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 InstrumentInterval ¶
type InstrumentInterval struct { // intervals // Required: true Intervals []string `json:"intervals"` // symbols // Required: true Symbols []string `json:"symbols"` }
InstrumentInterval instrument interval swagger:model InstrumentInterval
func (*InstrumentInterval) MarshalBinary ¶
func (m *InstrumentInterval) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*InstrumentInterval) UnmarshalBinary ¶
func (m *InstrumentInterval) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Insurance ¶
type Insurance struct { // currency // Required: true Currency *string `json:"currency"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` // wallet balance WalletBalance int64 `json:"walletBalance,omitempty"` }
Insurance Insurance Fund Data swagger:model Insurance
func (*Insurance) MarshalBinary ¶
MarshalBinary interface implementation
func (*Insurance) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Leaderboard ¶
type Leaderboard struct { // is real name IsRealName bool `json:"isRealName,omitempty"` // name // Required: true Name *string `json:"name"` // profit Profit float64 `json:"profit,omitempty"` }
Leaderboard Information on Top Users swagger:model Leaderboard
func (*Leaderboard) MarshalBinary ¶
func (m *Leaderboard) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Leaderboard) UnmarshalBinary ¶
func (m *Leaderboard) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Liquidation ¶
type Liquidation struct { // leaves qty LeavesQty int64 `json:"leavesQty,omitempty"` // order ID // Required: true OrderID *string `json:"orderID"` // price Price float64 `json:"price,omitempty"` // side Side string `json:"side,omitempty"` // symbol Symbol string `json:"symbol,omitempty"` }
Liquidation Active Liquidations swagger:model Liquidation
func (*Liquidation) MarshalBinary ¶
func (m *Liquidation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Liquidation) UnmarshalBinary ¶
func (m *Liquidation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Margin ¶
type Margin struct { // account // Required: true Account *int64 `json:"account"` // action Action string `json:"action,omitempty"` // amount Amount int64 `json:"amount,omitempty"` // available margin AvailableMargin int64 `json:"availableMargin,omitempty"` // commission Commission float64 `json:"commission,omitempty"` // confirmed debit ConfirmedDebit int64 `json:"confirmedDebit,omitempty"` // currency // Required: true Currency *string `json:"currency"` // excess margin ExcessMargin int64 `json:"excessMargin,omitempty"` // excess margin pcnt ExcessMarginPcnt float64 `json:"excessMarginPcnt,omitempty"` // gross comm GrossComm int64 `json:"grossComm,omitempty"` // gross exec cost GrossExecCost int64 `json:"grossExecCost,omitempty"` // gross last value GrossLastValue int64 `json:"grossLastValue,omitempty"` // gross mark value GrossMarkValue int64 `json:"grossMarkValue,omitempty"` // gross open cost GrossOpenCost int64 `json:"grossOpenCost,omitempty"` // gross open premium GrossOpenPremium int64 `json:"grossOpenPremium,omitempty"` // indicative tax IndicativeTax int64 `json:"indicativeTax,omitempty"` // init margin InitMargin int64 `json:"initMargin,omitempty"` // maint margin MaintMargin int64 `json:"maintMargin,omitempty"` // margin balance MarginBalance int64 `json:"marginBalance,omitempty"` // margin balance pcnt MarginBalancePcnt float64 `json:"marginBalancePcnt,omitempty"` // margin leverage MarginLeverage float64 `json:"marginLeverage,omitempty"` // margin used pcnt MarginUsedPcnt float64 `json:"marginUsedPcnt,omitempty"` // pending credit PendingCredit int64 `json:"pendingCredit,omitempty"` // pending debit PendingDebit int64 `json:"pendingDebit,omitempty"` // prev realised pnl PrevRealisedPnl int64 `json:"prevRealisedPnl,omitempty"` // prev state PrevState string `json:"prevState,omitempty"` // prev unrealised pnl PrevUnrealisedPnl int64 `json:"prevUnrealisedPnl,omitempty"` // realised pnl RealisedPnl int64 `json:"realisedPnl,omitempty"` // risk limit RiskLimit int64 `json:"riskLimit,omitempty"` // risk value RiskValue int64 `json:"riskValue,omitempty"` // session margin SessionMargin int64 `json:"sessionMargin,omitempty"` // state State string `json:"state,omitempty"` // synthetic margin SyntheticMargin int64 `json:"syntheticMargin,omitempty"` // target excess margin TargetExcessMargin int64 `json:"targetExcessMargin,omitempty"` // taxable margin TaxableMargin int64 `json:"taxableMargin,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // unrealised pnl UnrealisedPnl int64 `json:"unrealisedPnl,omitempty"` // unrealised profit UnrealisedProfit int64 `json:"unrealisedProfit,omitempty"` // var margin VarMargin int64 `json:"varMargin,omitempty"` // wallet balance WalletBalance int64 `json:"walletBalance,omitempty"` // withdrawable margin WithdrawableMargin int64 `json:"withdrawableMargin,omitempty"` }
Margin margin swagger:model Margin
func (*Margin) MarshalBinary ¶
MarshalBinary interface implementation
func (*Margin) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Notification ¶
type Notification struct { // body // Required: true Body *string `json:"body"` // closable Closable *bool `json:"closable,omitempty"` // date // Required: true // Format: date-time Date *strfmt.DateTime `json:"date"` // id ID int32 `json:"id,omitempty"` // persist Persist *bool `json:"persist,omitempty"` // sound Sound string `json:"sound,omitempty"` // title // Required: true Title *string `json:"title"` // ttl // Required: true TTL *int32 `json:"ttl"` // type // Enum: [success error info] Type string `json:"type,omitempty"` // wait for visibility WaitForVisibility *bool `json:"waitForVisibility,omitempty"` }
Notification Account Notifications swagger:model Notification
func (*Notification) MarshalBinary ¶
func (m *Notification) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Notification) UnmarshalBinary ¶
func (m *Notification) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Order ¶
type Order struct { // account Account int64 `json:"account,omitempty"` // avg px AvgPx float64 `json:"avgPx,omitempty"` // cl ord ID ClOrdID string `json:"clOrdID,omitempty"` // cl ord link ID ClOrdLinkID string `json:"clOrdLinkID,omitempty"` // contingency type ContingencyType string `json:"contingencyType,omitempty"` // cum qty CumQty int64 `json:"cumQty,omitempty"` // currency Currency string `json:"currency,omitempty"` // display qty DisplayQty int64 `json:"displayQty,omitempty"` // ex destination ExDestination string `json:"exDestination,omitempty"` // exec inst ExecInst string `json:"execInst,omitempty"` // leaves qty LeavesQty int64 `json:"leavesQty,omitempty"` // multi leg reporting type MultiLegReportingType string `json:"multiLegReportingType,omitempty"` // ord rej reason OrdRejReason string `json:"ordRejReason,omitempty"` // ord status OrdStatus string `json:"ordStatus,omitempty"` // ord type OrdType string `json:"ordType,omitempty"` // order ID // Required: true OrderID *string `json:"orderID"` // order qty OrderQty int64 `json:"orderQty,omitempty"` // peg offset value PegOffsetValue float64 `json:"pegOffsetValue,omitempty"` // peg price type PegPriceType string `json:"pegPriceType,omitempty"` // price Price float64 `json:"price,omitempty"` // settl currency SettlCurrency string `json:"settlCurrency,omitempty"` // side Side string `json:"side,omitempty"` // simple cum qty SimpleCumQty float64 `json:"simpleCumQty,omitempty"` // simple leaves qty SimpleLeavesQty float64 `json:"simpleLeavesQty,omitempty"` // simple order qty SimpleOrderQty float64 `json:"simpleOrderQty,omitempty"` // stop px StopPx float64 `json:"stopPx,omitempty"` // symbol Symbol string `json:"symbol,omitempty"` // text Text string `json:"text,omitempty"` // time in force TimeInForce string `json:"timeInForce,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // transact time // Format: date-time TransactTime strfmt.DateTime `json:"transactTime,omitempty"` // triggered Triggered string `json:"triggered,omitempty"` // working indicator WorkingIndicator bool `json:"workingIndicator,omitempty"` }
Order Placement, Cancellation, Amending, and History swagger:model Order
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OrderBookL2 ¶
type OrderBookL2 struct { // id // Required: true ID *int64 `json:"id"` // price Price float64 `json:"price,omitempty"` // side // Required: true Side *string `json:"side"` // size Size int64 `json:"size,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` }
OrderBookL2 order book l2 swagger:model OrderBookL2
func (*OrderBookL2) MarshalBinary ¶
func (m *OrderBookL2) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderBookL2) UnmarshalBinary ¶
func (m *OrderBookL2) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Position ¶
type Position struct { // account // Required: true Account *int64 `json:"account"` // avg cost price AvgCostPrice float64 `json:"avgCostPrice,omitempty"` // avg entry price AvgEntryPrice float64 `json:"avgEntryPrice,omitempty"` // bankrupt price BankruptPrice float64 `json:"bankruptPrice,omitempty"` // break even price BreakEvenPrice float64 `json:"breakEvenPrice,omitempty"` // commission Commission float64 `json:"commission,omitempty"` // cross margin CrossMargin bool `json:"crossMargin,omitempty"` // currency // Required: true Currency *string `json:"currency"` // current comm CurrentComm int64 `json:"currentComm,omitempty"` // current cost CurrentCost int64 `json:"currentCost,omitempty"` // current qty CurrentQty int64 `json:"currentQty,omitempty"` // current timestamp // Format: date-time CurrentTimestamp strfmt.DateTime `json:"currentTimestamp,omitempty"` // deleverage percentile DeleveragePercentile float64 `json:"deleveragePercentile,omitempty"` // exec buy cost ExecBuyCost int64 `json:"execBuyCost,omitempty"` // exec buy qty ExecBuyQty int64 `json:"execBuyQty,omitempty"` // exec comm ExecComm int64 `json:"execComm,omitempty"` // exec cost ExecCost int64 `json:"execCost,omitempty"` // exec qty ExecQty int64 `json:"execQty,omitempty"` // exec sell cost ExecSellCost int64 `json:"execSellCost,omitempty"` // exec sell qty ExecSellQty int64 `json:"execSellQty,omitempty"` // foreign notional ForeignNotional float64 `json:"foreignNotional,omitempty"` // gross exec cost GrossExecCost int64 `json:"grossExecCost,omitempty"` // gross open cost GrossOpenCost int64 `json:"grossOpenCost,omitempty"` // gross open premium GrossOpenPremium int64 `json:"grossOpenPremium,omitempty"` // home notional HomeNotional float64 `json:"homeNotional,omitempty"` // indicative tax IndicativeTax int64 `json:"indicativeTax,omitempty"` // indicative tax rate IndicativeTaxRate float64 `json:"indicativeTaxRate,omitempty"` // init margin InitMargin int64 `json:"initMargin,omitempty"` // init margin req InitMarginReq float64 `json:"initMarginReq,omitempty"` // is open IsOpen bool `json:"isOpen,omitempty"` // last price LastPrice float64 `json:"lastPrice,omitempty"` // last value LastValue int64 `json:"lastValue,omitempty"` // leverage Leverage float64 `json:"leverage,omitempty"` // liquidation price LiquidationPrice float64 `json:"liquidationPrice,omitempty"` // long bankrupt LongBankrupt int64 `json:"longBankrupt,omitempty"` // maint margin MaintMargin int64 `json:"maintMargin,omitempty"` // maint margin req MaintMarginReq float64 `json:"maintMarginReq,omitempty"` // margin call price MarginCallPrice float64 `json:"marginCallPrice,omitempty"` // mark price MarkPrice float64 `json:"markPrice,omitempty"` // mark value MarkValue int64 `json:"markValue,omitempty"` // open order buy cost OpenOrderBuyCost int64 `json:"openOrderBuyCost,omitempty"` // open order buy premium OpenOrderBuyPremium int64 `json:"openOrderBuyPremium,omitempty"` // open order buy qty OpenOrderBuyQty int64 `json:"openOrderBuyQty,omitempty"` // open order sell cost OpenOrderSellCost int64 `json:"openOrderSellCost,omitempty"` // open order sell premium OpenOrderSellPremium int64 `json:"openOrderSellPremium,omitempty"` // open order sell qty OpenOrderSellQty int64 `json:"openOrderSellQty,omitempty"` // opening comm OpeningComm int64 `json:"openingComm,omitempty"` // opening cost OpeningCost int64 `json:"openingCost,omitempty"` // opening qty OpeningQty int64 `json:"openingQty,omitempty"` // opening timestamp // Format: date-time OpeningTimestamp strfmt.DateTime `json:"openingTimestamp,omitempty"` // pos allowance PosAllowance int64 `json:"posAllowance,omitempty"` // pos comm PosComm int64 `json:"posComm,omitempty"` // pos cost PosCost int64 `json:"posCost,omitempty"` // pos cost2 PosCost2 int64 `json:"posCost2,omitempty"` // pos cross PosCross int64 `json:"posCross,omitempty"` // pos init PosInit int64 `json:"posInit,omitempty"` // pos loss PosLoss int64 `json:"posLoss,omitempty"` // pos maint PosMaint int64 `json:"posMaint,omitempty"` // pos margin PosMargin int64 `json:"posMargin,omitempty"` // pos state PosState string `json:"posState,omitempty"` // prev close price PrevClosePrice float64 `json:"prevClosePrice,omitempty"` // prev realised pnl PrevRealisedPnl int64 `json:"prevRealisedPnl,omitempty"` // prev unrealised pnl PrevUnrealisedPnl int64 `json:"prevUnrealisedPnl,omitempty"` // quote currency QuoteCurrency string `json:"quoteCurrency,omitempty"` // realised cost RealisedCost int64 `json:"realisedCost,omitempty"` // realised gross pnl RealisedGrossPnl int64 `json:"realisedGrossPnl,omitempty"` // realised pnl RealisedPnl int64 `json:"realisedPnl,omitempty"` // realised tax RealisedTax int64 `json:"realisedTax,omitempty"` // rebalanced pnl RebalancedPnl int64 `json:"rebalancedPnl,omitempty"` // risk limit RiskLimit int64 `json:"riskLimit,omitempty"` // risk value RiskValue int64 `json:"riskValue,omitempty"` // session margin SessionMargin int64 `json:"sessionMargin,omitempty"` // short bankrupt ShortBankrupt int64 `json:"shortBankrupt,omitempty"` // simple cost SimpleCost float64 `json:"simpleCost,omitempty"` // simple pnl SimplePnl float64 `json:"simplePnl,omitempty"` // simple pnl pcnt SimplePnlPcnt float64 `json:"simplePnlPcnt,omitempty"` // simple qty SimpleQty float64 `json:"simpleQty,omitempty"` // simple value SimpleValue float64 `json:"simpleValue,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // target excess margin TargetExcessMargin int64 `json:"targetExcessMargin,omitempty"` // tax base TaxBase int64 `json:"taxBase,omitempty"` // taxable margin TaxableMargin int64 `json:"taxableMargin,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // underlying Underlying string `json:"underlying,omitempty"` // unrealised cost UnrealisedCost int64 `json:"unrealisedCost,omitempty"` // unrealised gross pnl UnrealisedGrossPnl int64 `json:"unrealisedGrossPnl,omitempty"` // unrealised pnl UnrealisedPnl int64 `json:"unrealisedPnl,omitempty"` // unrealised pnl pcnt UnrealisedPnlPcnt float64 `json:"unrealisedPnlPcnt,omitempty"` // unrealised roe pcnt UnrealisedRoePcnt float64 `json:"unrealisedRoePcnt,omitempty"` // unrealised tax UnrealisedTax int64 `json:"unrealisedTax,omitempty"` // var margin VarMargin int64 `json:"varMargin,omitempty"` }
Position Summary of Open and Closed Positions swagger:model Position
func (*Position) MarshalBinary ¶
MarshalBinary interface implementation
func (*Position) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Quote ¶
type Quote struct { // ask price AskPrice float64 `json:"askPrice,omitempty"` // ask size AskSize int64 `json:"askSize,omitempty"` // bid price BidPrice float64 `json:"bidPrice,omitempty"` // bid size BidSize int64 `json:"bidSize,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` }
Quote Best Bid/Offer Snapshots & Historical Bins swagger:model Quote
func (*Quote) MarshalBinary ¶
MarshalBinary interface implementation
func (*Quote) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Settlement ¶
type Settlement struct { // bankrupt Bankrupt int64 `json:"bankrupt,omitempty"` // option strike price OptionStrikePrice float64 `json:"optionStrikePrice,omitempty"` // option underlying price OptionUnderlyingPrice float64 `json:"optionUnderlyingPrice,omitempty"` // settled price SettledPrice float64 `json:"settledPrice,omitempty"` // settlement type SettlementType string `json:"settlementType,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // tax base TaxBase int64 `json:"taxBase,omitempty"` // tax rate TaxRate float64 `json:"taxRate,omitempty"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` }
Settlement Historical Settlement Data 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 Stats ¶
type Stats struct { // currency Currency string `json:"currency,omitempty"` // open interest OpenInterest int64 `json:"openInterest,omitempty"` // open value OpenValue int64 `json:"openValue,omitempty"` // root symbol // Required: true RootSymbol *string `json:"rootSymbol"` // turnover24h Turnover24h int64 `json:"turnover24h,omitempty"` // volume24h Volume24h int64 `json:"volume24h,omitempty"` }
Stats Exchange Statistics swagger:model Stats
func (*Stats) MarshalBinary ¶
MarshalBinary interface implementation
func (*Stats) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type StatsHistory ¶
type StatsHistory struct { // currency Currency string `json:"currency,omitempty"` // date // Required: true // Format: date-time Date *strfmt.DateTime `json:"date"` // root symbol // Required: true RootSymbol *string `json:"rootSymbol"` // turnover Turnover int64 `json:"turnover,omitempty"` // volume Volume int64 `json:"volume,omitempty"` }
StatsHistory stats history swagger:model StatsHistory
func (*StatsHistory) MarshalBinary ¶
func (m *StatsHistory) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StatsHistory) UnmarshalBinary ¶
func (m *StatsHistory) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StatsUSD ¶
type StatsUSD struct { // currency Currency string `json:"currency,omitempty"` // root symbol // Required: true RootSymbol *string `json:"rootSymbol"` // turnover Turnover int64 `json:"turnover,omitempty"` // turnover24h Turnover24h int64 `json:"turnover24h,omitempty"` // turnover30d Turnover30d int64 `json:"turnover30d,omitempty"` // turnover365d Turnover365d int64 `json:"turnover365d,omitempty"` }
StatsUSD stats u s d swagger:model StatsUSD
func (*StatsUSD) MarshalBinary ¶
MarshalBinary interface implementation
func (*StatsUSD) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Trade ¶
type Trade struct { // foreign notional ForeignNotional float64 `json:"foreignNotional,omitempty"` // gross value GrossValue int64 `json:"grossValue,omitempty"` // home notional HomeNotional float64 `json:"homeNotional,omitempty"` // price Price float64 `json:"price,omitempty"` // side Side string `json:"side,omitempty"` // size Size int64 `json:"size,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // tick direction TickDirection string `json:"tickDirection,omitempty"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` // trd match ID TrdMatchID string `json:"trdMatchID,omitempty"` }
Trade Individual & Bucketed Trades swagger:model Trade
func (*Trade) MarshalBinary ¶
MarshalBinary interface implementation
func (*Trade) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TradeBin ¶
type TradeBin struct { // close Close float64 `json:"close,omitempty"` // foreign notional ForeignNotional float64 `json:"foreignNotional,omitempty"` // high High float64 `json:"high,omitempty"` // home notional HomeNotional float64 `json:"homeNotional,omitempty"` // last size LastSize int64 `json:"lastSize,omitempty"` // low Low float64 `json:"low,omitempty"` // open Open float64 `json:"open,omitempty"` // symbol // Required: true Symbol *string `json:"symbol"` // timestamp // Required: true // Format: date-time Timestamp *strfmt.DateTime `json:"timestamp"` // trades Trades int64 `json:"trades,omitempty"` // turnover Turnover int64 `json:"turnover,omitempty"` // volume Volume int64 `json:"volume,omitempty"` // vwap Vwap float64 `json:"vwap,omitempty"` }
TradeBin trade bin swagger:model TradeBin
func (*TradeBin) MarshalBinary ¶
MarshalBinary interface implementation
func (*TradeBin) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Transaction ¶
type Transaction struct { // account Account int64 `json:"account,omitempty"` // address Address string `json:"address,omitempty"` // amount Amount int64 `json:"amount,omitempty"` // walletBalance WalletBalance int64 `json:"walletBalance,omitempty"` // marginBalance MarginBalance int64 `json:"marginBalance,omitempty"` // currency Currency string `json:"currency,omitempty"` // fee Fee int64 `json:"fee,omitempty"` // text Text string `json:"text,omitempty"` // timestamp // Format: date-time Timestamp string `json:"timestamp,omitempty"` // strfmt.DateTime // transact ID // Required: true TransactID string `json:"transactID"` // transact status TransactStatus string `json:"transactStatus,omitempty"` // transact time // Format: date-time TransactTime string `json:"transactTime,omitempty"` // strfmt.DateTime // transact type TransactType string `json:"transactType,omitempty"` // tx Tx string `json:"tx,omitempty"` }
Transaction transaction swagger:model Transaction
func (*Transaction) MarshalBinary ¶
func (m *Transaction) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Transaction) UnmarshalBinary ¶
func (m *Transaction) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct { // t f a enabled TFAEnabled string `json:"TFAEnabled,omitempty"` // affiliate ID // Max Length: 6 AffiliateID string `json:"affiliateID,omitempty"` // country // Max Length: 3 Country string `json:"country,omitempty"` // created // Format: date-time Created strfmt.DateTime `json:"created,omitempty"` // email // Required: true Email *string `json:"email"` // firstname Firstname string `json:"firstname,omitempty"` // geoip country // Max Length: 2 GeoipCountry string `json:"geoipCountry,omitempty"` // geoip region // Max Length: 2 GeoipRegion string `json:"geoipRegion,omitempty"` // id ID int32 `json:"id,omitempty"` // last updated // Format: date-time LastUpdated strfmt.DateTime `json:"lastUpdated,omitempty"` // lastname Lastname string `json:"lastname,omitempty"` // owner Id OwnerID int32 `json:"ownerId,omitempty"` // pgp pub key // Max Length: 16384 PgpPubKey string `json:"pgpPubKey,omitempty"` // phone Phone string `json:"phone,omitempty"` // preferences Preferences *UserPreferences `json:"preferences,omitempty"` // typ Typ string `json:"typ,omitempty"` // username // Required: true Username *string `json:"username"` }
User Account Operations swagger:model User
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserCommission ¶
type UserCommission struct { // maker fee MakerFee float64 `json:"makerFee,omitempty"` // max fee MaxFee float64 `json:"maxFee,omitempty"` // settlement fee SettlementFee float64 `json:"settlementFee,omitempty"` // taker fee TakerFee float64 `json:"takerFee,omitempty"` }
UserCommission user commission swagger:model UserCommission
func (*UserCommission) MarshalBinary ¶
func (m *UserCommission) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserCommission) UnmarshalBinary ¶
func (m *UserCommission) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserPreferences ¶
type UserPreferences struct { // alert on liquidations AlertOnLiquidations bool `json:"alertOnLiquidations,omitempty"` // animations enabled AnimationsEnabled bool `json:"animationsEnabled,omitempty"` // announcements last seen // Format: date-time AnnouncementsLastSeen strfmt.DateTime `json:"announcementsLastSeen,omitempty"` // chat channel ID ChatChannelID float64 `json:"chatChannelID,omitempty"` // color theme ColorTheme string `json:"colorTheme,omitempty"` // currency Currency string `json:"currency,omitempty"` // debug Debug bool `json:"debug,omitempty"` // disable emails DisableEmails []string `json:"disableEmails"` // hide confirm dialogs HideConfirmDialogs []string `json:"hideConfirmDialogs"` // hide connection modal HideConnectionModal bool `json:"hideConnectionModal,omitempty"` // hide from leaderboard HideFromLeaderboard *bool `json:"hideFromLeaderboard,omitempty"` // hide name from leaderboard HideNameFromLeaderboard *bool `json:"hideNameFromLeaderboard,omitempty"` // hide notifications HideNotifications []string `json:"hideNotifications"` // locale Locale *string `json:"locale,omitempty"` // msgs seen MsgsSeen []string `json:"msgsSeen"` // order book binning OrderBookBinning interface{} `json:"orderBookBinning,omitempty"` // order book type OrderBookType string `json:"orderBookType,omitempty"` // order clear immediate OrderClearImmediate *bool `json:"orderClearImmediate,omitempty"` // order controls plus minus OrderControlsPlusMinus bool `json:"orderControlsPlusMinus,omitempty"` // show locale numbers ShowLocaleNumbers *bool `json:"showLocaleNumbers,omitempty"` // sounds Sounds []string `json:"sounds"` // strict IP check StrictIPCheck *bool `json:"strictIPCheck,omitempty"` // strict timeout StrictTimeout *bool `json:"strictTimeout,omitempty"` // ticker group TickerGroup string `json:"tickerGroup,omitempty"` // ticker pinned TickerPinned bool `json:"tickerPinned,omitempty"` // trade layout TradeLayout string `json:"tradeLayout,omitempty"` }
UserPreferences user preferences swagger:model UserPreferences
func (*UserPreferences) MarshalBinary ¶
func (m *UserPreferences) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserPreferences) UnmarshalBinary ¶
func (m *UserPreferences) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Wallet ¶
type Wallet struct { // account // Required: true Account *int64 `json:"account"` // addr Addr string `json:"addr,omitempty"` // amount Amount int64 `json:"amount,omitempty"` // confirmed debit ConfirmedDebit int64 `json:"confirmedDebit,omitempty"` // currency // Required: true Currency *string `json:"currency"` // delta amount DeltaAmount int64 `json:"deltaAmount,omitempty"` // delta deposited DeltaDeposited int64 `json:"deltaDeposited,omitempty"` // delta transfer in DeltaTransferIn int64 `json:"deltaTransferIn,omitempty"` // delta transfer out DeltaTransferOut int64 `json:"deltaTransferOut,omitempty"` // delta withdrawn DeltaWithdrawn int64 `json:"deltaWithdrawn,omitempty"` // deposited Deposited int64 `json:"deposited,omitempty"` // pending credit PendingCredit int64 `json:"pendingCredit,omitempty"` // pending debit PendingDebit int64 `json:"pendingDebit,omitempty"` // prev amount PrevAmount int64 `json:"prevAmount,omitempty"` // prev deposited PrevDeposited int64 `json:"prevDeposited,omitempty"` // prev timestamp // Format: date-time PrevTimestamp strfmt.DateTime `json:"prevTimestamp,omitempty"` // prev transfer in PrevTransferIn int64 `json:"prevTransferIn,omitempty"` // prev transfer out PrevTransferOut int64 `json:"prevTransferOut,omitempty"` // prev withdrawn PrevWithdrawn int64 `json:"prevWithdrawn,omitempty"` // script Script string `json:"script,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty"` // transfer in TransferIn int64 `json:"transferIn,omitempty"` // transfer out TransferOut int64 `json:"transferOut,omitempty"` // withdrawal lock WithdrawalLock []string `json:"withdrawalLock"` // withdrawn Withdrawn int64 `json:"withdrawn,omitempty"` }
Wallet wallet swagger:model Wallet
func (*Wallet) MarshalBinary ¶
MarshalBinary interface implementation
func (*Wallet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files
¶
- access_token.go
- affiliate.go
- announcement.go
- api_key.go
- chat.go
- chat_channel.go
- connected_users.go
- error.go
- execution.go
- funding.go
- index_composite.go
- instrument.go
- instrument_interval.go
- insurance.go
- leaderboard.go
- liquidation.go
- margin.go
- notification.go
- order.go
- order_book_l2.go
- position.go
- quote.go
- settlement.go
- stats.go
- stats_history.go
- stats_u_s_d.go
- trade.go
- trade_bin.go
- transaction.go
- user.go
- user_commission.go
- user_preferences.go
- wallet.go
- x_any.go