Documentation
¶
Index ¶
- func MyBalance() (api.IRequest, api.IResponse)
- func NewGetAccountPositionRisk(param *GetAccountPositionRiskParam) (api.IRequest, api.IResponse)
- func NewGetBalance(param *GetBalanceParam) (api.IRequest, api.IResponse)
- func NewGetBills(param *GetBillsParam) (api.IRequest, api.IResponse)
- func NewGetBillsArchive(param *GetBillsParam) (api.IRequest, api.IResponse)
- func NewGetConfig() (api.IRequest, api.IResponse)
- func NewGetInterestRate(param *GetInterestRateParam) (api.IRequest, api.IResponse)
- func NewGetLeverageInfo(param *GetLeverageInfoParam) (api.IRequest, api.IResponse)
- func NewGetMaxAvailSize(param *GetMaxAvailSizeParam) (api.IRequest, api.IResponse)
- func NewGetMaxLoan(param *GetMaxLoanParam) (api.IRequest, api.IResponse)
- func NewGetMaxSize(param *GetMaxSizeParam) (api.IRequest, api.IResponse)
- func NewGetPositions(param *GetPositionsParam) (api.IRequest, api.IResponse)
- func NewGetTradeFee(param *GetTradeFeeParam) (api.IRequest, api.IResponse)
- func NewPostPositionMarginBalance(param *PostPositionMarginBalanceParam) (api.IRequest, api.IResponse)
- func NewPostSetLeverage(param *PostSetLeverageParam) (api.IRequest, api.IResponse)
- func NewPostSetPositionMode(param *PostSetPositionModeParam) (api.IRequest, api.IResponse)
- type AccountPositionRisk
- type BalData
- type Balance
- type BalanceDetail
- type Bills
- type Config
- type GetAccountPositionRiskParam
- type GetAccountPositionRiskResponse
- type GetBalanceParam
- type GetBalanceResponse
- type GetBillsParam
- type GetBillsResponse
- type GetConfigResponse
- type GetInterestRateParam
- type GetInterestRateResponse
- type GetLeverageInfoParam
- type GetLeverageInfoResponse
- type GetMaxAvailSizeParam
- type GetMaxAvailSizeResponse
- type GetMaxLoanParam
- type GetMaxLoanResponse
- type GetMaxSizeParam
- type GetMaxSizeResponse
- type GetPositionsParam
- type GetPositionsResponse
- type GetTradeFeeParam
- type GetTradeFeeResponse
- type InterestRate
- type LeverageInfo
- type MaxAvailSize
- type MaxLoan
- type MaxSize
- type PosData
- type Position
- type PositionMarginBalance
- type PostPositionMarginBalanceParam
- type PostPositionMarginBalanceResponse
- type PostSetLeverageParam
- type PostSetLeverageResponse
- type PostSetPositionModeParam
- type PostSetPositionModeResponse
- type SetLeverage
- type SetPositionMode
- type TradeFee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetAccountPositionRisk ¶
func NewGetAccountPositionRisk(param *GetAccountPositionRiskParam) (api.IRequest, api.IResponse)
func NewGetBalance ¶
func NewGetBalance(param *GetBalanceParam) (api.IRequest, api.IResponse)
func NewGetBills ¶
func NewGetBills(param *GetBillsParam) (api.IRequest, api.IResponse)
func NewGetBillsArchive ¶
func NewGetBillsArchive(param *GetBillsParam) (api.IRequest, api.IResponse)
func NewGetInterestRate ¶
func NewGetInterestRate(param *GetInterestRateParam) (api.IRequest, api.IResponse)
func NewGetLeverageInfo ¶
func NewGetLeverageInfo(param *GetLeverageInfoParam) (api.IRequest, api.IResponse)
func NewGetMaxAvailSize ¶
func NewGetMaxAvailSize(param *GetMaxAvailSizeParam) (api.IRequest, api.IResponse)
func NewGetMaxLoan ¶
func NewGetMaxLoan(param *GetMaxLoanParam) (api.IRequest, api.IResponse)
func NewGetMaxSize ¶
func NewGetMaxSize(param *GetMaxSizeParam) (api.IRequest, api.IResponse)
func NewGetPositions ¶
func NewGetPositions(param *GetPositionsParam) (api.IRequest, api.IResponse)
func NewGetTradeFee ¶
func NewGetTradeFee(param *GetTradeFeeParam) (api.IRequest, api.IResponse)
func NewPostPositionMarginBalance ¶
func NewPostPositionMarginBalance(param *PostPositionMarginBalanceParam) (api.IRequest, api.IResponse)
func NewPostSetLeverage ¶
func NewPostSetLeverage(param *PostSetLeverageParam) (api.IRequest, api.IResponse)
func NewPostSetPositionMode ¶
func NewPostSetPositionMode(param *PostSetPositionModeParam) (api.IRequest, api.IResponse)
Types ¶
type AccountPositionRisk ¶
type Balance ¶
type Balance struct { AdjEq string `json:"adjEq"` Imr string `json:"imr"` IsoEq string `json:"isoEq"` MgnRatio string `json:"mgnRatio"` Mmr string `json:"mmr"` NotionalUsd string `json:"notionalUsd"` OrdFroz string `json:"ordFroz"` TotalEq string `json:"totalEq"` UTime int64 `json:"uTime,string"` Details []BalanceDetail `json:"details"` }
type BalanceDetail ¶
type BalanceDetail struct { AvailBal string `json:"availBal"` AvailEq string `json:"availEq"` CashBal string `json:"cashBal"` Ccy string `json:"ccy"` CrossLiab string `json:"crossLiab"` DisEq string `json:"disEq"` Eq string `json:"eq"` EqUsd string `json:"eqUsd"` FrozenBal string `json:"FrozenBal"` Interest string `json:"interest"` IsoEq string `json:"isoEq"` IsoLiab string `json:"isoLiab"` IsoUpl string `json:"isoUpl"` Liab string `json:"liab"` MaxLoan string `json:"maxLoan"` MgnRatio string `json:"mgnRatio"` NotionalLever string `json:"notionalLever"` OrdFrozen string `json:"ordFrozen"` StgyEq string `json:"stgyEq"` Twap string `json:"twap"` UTime int64 `json:"uTime,string"` Upl string `json:"upl"` UplLiab string `json:"uplLiab"` }
type Bills ¶
type Bills struct { InstType string `json:"instType"` BillId string `json:"billId"` Type string `json:"type"` SubType string `json:"subType"` Ts int64 `json:"ts,string"` BalChg string `json:"balChg"` PosBalChg string `json:"posBalChg"` Bal string `json:"bal"` PosBal string `json:"posBal"` Sz string `json:"sz"` Ccy string `json:"ccy"` Pnl string `json:"pnl"` Fee string `json:"fee"` MgnMode string `json:"mgnMode"` InstId string `json:"instId"` OrdId string `json:"ordId"` ExecType string `json:"execType"` From string `json:"from"` To string `json:"to"` Notes string `json:"notes"` }
type Config ¶
type Config struct { Uid string `json:"uid"` AcctLv string `json:"acctLv"` PosMode string `json:"posMode"` AutoLoan bool `json:"autoLoan"` GreeksType string `json:"greeksType"` Level string `json:"level"` LevelTmp string `json:"levelTmp"` CtIsoMode string `json:"ctIsoMode"` MgnIsoMode string `json:"mgnIsoMode"` }
type GetAccountPositionRiskParam ¶
type GetAccountPositionRiskParam struct {
InstType string `url:"instType,omitempty"`
}
type GetAccountPositionRiskResponse ¶
type GetAccountPositionRiskResponse struct { api.Response Data []AccountPositionRisk `json:"data"` }
type GetBalanceParam ¶
type GetBalanceParam struct {
Ccy string `url:"ccy,omitempty"`
}
type GetBalanceResponse ¶
type GetBillsParam ¶
type GetBillsResponse ¶
type GetConfigResponse ¶
type GetInterestRateParam ¶
type GetInterestRateParam struct {
Ccy string `url:"ccy,omitempty"`
}
type GetInterestRateResponse ¶
type GetInterestRateResponse struct { api.Response Data []InterestRate `json:"data"` }
type GetLeverageInfoParam ¶
type GetLeverageInfoResponse ¶
type GetLeverageInfoResponse struct { api.Response Data []LeverageInfo `json:"data"` }
type GetMaxAvailSizeParam ¶
type GetMaxAvailSizeResponse ¶
type GetMaxLoanParam ¶
type GetMaxLoanResponse ¶
type GetMaxSizeParam ¶
type GetMaxSizeResponse ¶
type GetPositionsParam ¶
type GetPositionsResponse ¶
type GetTradeFeeParam ¶
type GetTradeFeeResponse ¶
type InterestRate ¶
type LeverageInfo ¶
type MaxAvailSize ¶
type PosData ¶
type PosData struct { InstType string `json:"instType"` MgnMode string `json:"mgnMode"` PosId string `json:"posId"` InstId string `json:"instId"` Pos string `json:"pos"` BaseBal string `json:"baseBal"` QuoteBal string `json:"quoteBal"` PosSide string `json:"posSide"` PosCcy string `json:"posCcy"` Ccy string `json:"ccy"` NotionalCcy string `json:"notionalCcy"` NotionalUsd string `json:"notionalUsd"` }
type Position ¶
type Position struct { InstType string `json:"instType"` MgnMode string `json:"mgnMode"` PosId string `json:"posId"` PosSide string `json:"posSide"` Pos string `json:"pos"` BaseBal string `json:"baseBal"` QuoteBal string `json:"quoteBal"` PosCcy string `json:"posCcy"` AvailPos string `json:"availPos"` AvgPx string `json:"avgPx"` Upl string `json:"upl"` UplRatio string `json:"uplRatio"` InstId string `json:"instId"` Lever string `json:"lever"` LiqPx string `json:"liqPx"` MarkPx string `json:"markPx"` Imr string `json:"imr"` Margin string `json:"margin"` MgnRatio string `json:"mgnRatio"` Mmr string `json:"mmr"` Liab string `json:"liab"` LiabCcy string `json:"liabCcy"` Interest string `json:"interest"` TradeId string `json:"tradeId"` OptVal string `json:"optVal"` NotionalUsd string `json:"notionalUsd"` Adl string `json:"adl"` Ccy string `json:"ccy"` Last string `json:"last"` UsdPx string `json:"usdPx"` DeltaBS string `json:"deltaBS"` DeltaPA string `json:"deltaPA"` GammaBS string `json:"gammaBS"` GammaPA string `json:"gammaPA"` ThetaBS string `json:"thetaBS"` ThetaPA string `json:"thetaPA"` VegaBS string `json:"vegaBS"` VegaPA string `json:"vegaPA"` CTime string `json:"cTime"` UTime int64 `json:"uTime,string"` }
type PositionMarginBalance ¶
type PostPositionMarginBalanceResponse ¶
type PostPositionMarginBalanceResponse struct { api.Response Data []PositionMarginBalance `json:"data"` }
type PostSetLeverageParam ¶
type PostSetLeverageResponse ¶
type PostSetLeverageResponse struct { api.Response Data []SetLeverage `json:"data"` }
type PostSetPositionModeParam ¶
type PostSetPositionModeParam struct {
PosMode string `json:"posMode"`
}
type PostSetPositionModeResponse ¶
type PostSetPositionModeResponse struct { api.Response Data []SetPositionMode `json:"data"` }
type SetLeverage ¶
type SetPositionMode ¶
type SetPositionMode struct {
PosMode string `json:"posMode"`
}
Source Files
¶
- get_account_position_risk.go
- get_balance.go
- get_bills.go
- get_bills_archive.go
- get_config.go
- get_interest_rate.go
- get_leverage_info.go
- get_max_avail_size.go
- get_max_loan.go
- get_max_size.go
- get_positions.go
- get_trade_fee.go
- post_position_margin_balance.go
- post_set_leverage.go
- post_set_position_mode.go
Click to show internal directories.
Click to hide internal directories.