Documentation
¶
Index ¶
Constants ¶
View Source
const (
Endpoint = "https://efox.fox.one"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateJWTToken ¶ added in v1.1.15
func UseEndpoint ¶
func UseEndpoint(endpoint string)
Types ¶
type Depth ¶
type Depth struct { Version string `json:"version,omitempty"` Asks []DepthOrder `json:"asks,omitempty"` Bids []DepthOrder `json:"bids,omitempty"` }
type DepthOrder ¶
type Market ¶
type OrderReport ¶ added in v1.1.15
type OrderReport struct { ID string `json:"id,omitempty"` CreatedAt int64 `json:"created_at,omitempty"` Date string `json:"date,omitempty"` UserID string `json:"user_id,omitempty"` MerchantID string `json:"merchant_id,omitempty"` BrokerID string `json:"broker_id,omitempty"` Symbol string `json:"symbol,omitempty"` // BTCUSDT Side string `json:"side,omitempty"` // BID or ASK FilledAmount decimal.Decimal `json:"filled_amount,omitempty"` ObtainedAmount decimal.Decimal `json:"obtained_amount,omitempty"` FeeAmount decimal.Decimal `json:"fee_amount,omitempty"` FeeAsset string `json:"fee_asset,omitempty"` Count int64 `json:"count,omitempty"` }
func ListAllOrderReports ¶ added in v1.1.15
func ListOrderReports ¶ added in v1.1.15
func ListOrderReports(ctx context.Context, token, date, cursor string, limit int) ([]*OrderReport, *pagination.Pagination, error)
type Pair ¶
type Pair struct { Base *Asset `json:"base,omitempty"` Quote *Asset `json:"quote,omitempty"` CanBuy bool `json:"can_buy,omitempty"` CanSell bool `json:"can_sell,omitempty"` Symbol string `json:"symbol,omitempty"` PricePrecision int `json:"price_precision,omitempty"` Change decimal.Decimal `json:"change,omitempty"` Price decimal.Decimal `json:"price,omitempty"` Exchange string `json:"exchange,omitempty"` }
type Ticker ¶
type Ticker struct { Last decimal.Decimal `json:"last,omitempty"` Change decimal.Decimal `json:"change,omitempty"` Buy decimal.Decimal `json:"buy,omitempty"` Sell decimal.Decimal `json:"sell,omitempty"` High decimal.Decimal `json:"high,omitempty"` Low decimal.Decimal `json:"low,omitempty"` Volume decimal.Decimal `json:"volume,omitempty"` }
Click to show internal directories.
Click to hide internal directories.