Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct { Future string `json:"future"` Side string `json:"side"` InitialMarginRequirement float64 `json:"initialMarginRequirement"` MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"` EntryPrice float64 `json:"entryPrice"` EstimatedLiquidationPrice float64 `json:"estimatedLiquidationPrice,omitempty"` Size float64 `json:"size"` NetSize float64 `json:"netSize"` OpenSize float64 `json:"openSize"` LongOrderSize float64 `json:"longOrderSize"` ShortOrderSize float64 `json:"shortOrderSize"` Cost float64 `json:"cost"` UnrealizedPnl float64 `json:"unrealizedPnl"` RealizedPnl float64 `json:"realizedPnl"` RecentAverageOpenPrice float64 `json:"recentAverageOpenPrice"` }
type RequestForInformation ¶
type RequestForInformation struct { }
func (*RequestForInformation) Method ¶
func (req *RequestForInformation) Method() string
func (*RequestForInformation) Path ¶
func (req *RequestForInformation) Path() string
func (*RequestForInformation) Payload ¶
func (req *RequestForInformation) Payload() []byte
func (*RequestForInformation) Query ¶
func (req *RequestForInformation) Query() string
type RequestForLeverage ¶
type RequestForLeverage struct {
Leverage int `json:"leverage"`
}
func (*RequestForLeverage) Method ¶
func (req *RequestForLeverage) Method() string
func (*RequestForLeverage) Path ¶
func (req *RequestForLeverage) Path() string
func (*RequestForLeverage) Payload ¶
func (req *RequestForLeverage) Payload() []byte
func (*RequestForLeverage) Query ¶
func (req *RequestForLeverage) Query() string
type RequestForLoginStatus ¶
type RequestForLoginStatus struct { }
func (*RequestForLoginStatus) Method ¶
func (req *RequestForLoginStatus) Method() string
func (*RequestForLoginStatus) Path ¶
func (req *RequestForLoginStatus) Path() string
func (*RequestForLoginStatus) Payload ¶
func (req *RequestForLoginStatus) Payload() []byte
func (*RequestForLoginStatus) Query ¶
func (req *RequestForLoginStatus) Query() string
type RequestForPositions ¶
type RequestForPositions struct { }
func (*RequestForPositions) Method ¶
func (req *RequestForPositions) Method() string
func (*RequestForPositions) Path ¶
func (req *RequestForPositions) Path() string
func (*RequestForPositions) Payload ¶
func (req *RequestForPositions) Payload() []byte
func (*RequestForPositions) Query ¶
func (req *RequestForPositions) Query() string
type ResponseForInformation ¶
type ResponseForInformation struct { Username string `json:"username"` Collateral float64 `json:"collateral"` FreeCollateral float64 `json:"freeCollateral"` TotalAccountValue float64 `json:"totalAccountValue"` TotalPositionSize float64 `json:"totalPositionSize"` InitialMarginRequirement float64 `json:"initialMarginRequirement"` Leverage float64 `json:"leverage"` MakerFee float64 `json:"makerFee"` TakerFee float64 `json:"takerFee"` MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"` MarginFraction float64 `json:"marginFraction"` OpenMarginFraction float64 `json:"openMarginFraction"` Positions []Position `json:"positions"` BackstopProvider bool `json:"backstopProvider"` Liquidating bool `json:"liquidating"` }
type ResponseForLeverage ¶
type ResponseForLeverage interface{}
type ResponseForLoginStatus ¶
type ResponseForLoginStatus struct { Account struct { BackstopProvider bool `json:"backstopProvider"` ChargeInterestOnNegativeUsd bool `json:"chargeInterestOnNegativeUsd"` Collateral float64 `json:"collateral"` FreeCollateral float64 `json:"freeCollateral"` InitialMarginRequirement float64 `json:"initialMarginRequirement"` Leverage float64 `json:"leverage"` Liquidating bool `json:"liquidating"` MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"` MakerFee float64 `json:"makerFee"` MarginFraction interface{} `json:"marginFraction"` OpenMarginFraction interface{} `json:"openMarginFraction"` PositionLimit interface{} `json:"positionLimit"` PositionLimitUsed interface{} `json:"positionLimitUsed"` Positions []struct { CollateralUsed float64 `json:"collateralUsed"` Cost float64 `json:"cost"` EntryPrice interface{} `json:"entryPrice"` EstimatedLiquidationPrice interface{} `json:"estimatedLiquidationPrice"` Future string `json:"future"` InitialMarginRequirement float64 `json:"initialMarginRequirement"` LongOrderSize float64 `json:"longOrderSize"` MaintenanceMarginRequirement float64 `json:"maintenanceMarginRequirement"` NetSize float64 `json:"netSize"` OpenSize float64 `json:"openSize"` RealizedPnl float64 `json:"realizedPnl"` ShortOrderSize float64 `json:"shortOrderSize"` Side string `json:"side"` Size float64 `json:"size"` UnrealizedPnl float64 `json:"unrealizedPnl"` } `json:"positions"` SpotLendingEnabled bool `json:"spotLendingEnabled"` SpotMarginEnabled bool `json:"spotMarginEnabled"` TakerFee float64 `json:"takerFee"` TotalAccountValue float64 `json:"totalAccountValue"` TotalPositionSize float64 `json:"totalPositionSize"` UseFttCollateral bool `json:"useFttCollateral"` Username string `json:"username"` } `json:"account"` Country string `json:"country"` InternalTransfersEnabled bool `json:"internalTransfersEnabled"` LoggedIn bool `json:"loggedIn"` Mfa string `json:"mfa"` MfaRequired interface{} `json:"mfaRequired"` ReadOnly bool `json:"readOnly"` RestrictedToSubaccount bool `json:"restrictedToSubaccount"` Subaccount interface{} `json:"subaccount"` User struct { CanOtcTradeOptions bool `json:"canOtcTradeOptions"` CancelAllOrdersButtonEnabled bool `json:"cancelAllOrdersButtonEnabled"` ChatApp string `json:"chatApp"` ChatHandle string `json:"chatHandle"` ChatUserID interface{} `json:"chatUserId"` ConfirmTrades bool `json:"confirmTrades"` CustomRefereeDiscountRate float64 `json:"customRefereeDiscountRate"` CustomReferralRebateRate float64 `json:"customReferralRebateRate"` DailyLeveragedTokenCreationVolume float64 `json:"dailyLeveragedTokenCreationVolume"` DailyLeveragedTokenRedemptionVolume float64 `json:"dailyLeveragedTokenRedemptionVolume"` DailyMakerVolume float64 `json:"dailyMakerVolume"` DailyVolume float64 `json:"dailyVolume"` DisplayName string `json:"displayName"` Email string `json:"email"` FeeTier int `json:"feeTier"` Ftt float64 `json:"ftt"` InTradingCompetition bool `json:"inTradingCompetition"` Kyc string `json:"kyc"` KycApplicationStatus string `json:"kycApplicationStatus"` KycLevel int `json:"kycLevel"` KycMessage interface{} `json:"kycMessage"` KycType string `json:"kycType"` Mfa string `json:"mfa"` MmLevel int `json:"mmLevel"` MonthlyLeveragedTokenCreationVolume float64 `json:"monthlyLeveragedTokenCreationVolume"` MonthlyLeveragedTokenRedemptionVolume float64 `json:"monthlyLeveragedTokenRedemptionVolume"` MonthlyLtVolume float64 `json:"monthlyLtVolume"` MonthlyMakerVolume float64 `json:"monthlyMakerVolume"` MonthlyVolume float64 `json:"monthlyVolume"` OptionsEnabled bool `json:"optionsEnabled"` PassedLtQuiz bool `json:"passedLtQuiz"` RandomSlug string `json:"randomSlug"` ReferralCode int `json:"referralCode"` Referred bool `json:"referred"` ReferrerID int `json:"referrerId"` RequireMfaForWithdrawals bool `json:"requireMfaForWithdrawals"` RequireWhitelistedWithdrawals bool `json:"requireWhitelistedWithdrawals"` RequireWithdrawalPassword bool `json:"requireWithdrawalPassword"` ShowInLeaderboard bool `json:"showInLeaderboard"` UseBodPriceChange bool `json:"useBodPriceChange"` UseRealNameInLeaderboard bool `json:"useRealNameInLeaderboard"` Vip int `json:"vip"` WhitelistedAddressDelayDays interface{} `json:"whitelistedAddressDelayDays"` } `json:"user"` WithdrawalEnabled bool `json:"withdrawalEnabled"` }
type ResponseForPositions ¶
type ResponseForPositions []Position
Click to show internal directories.
Click to hide internal directories.