Documentation ¶
Index ¶
- Constants
- type AccountResp
- type Bigone
- func (bo *Bigone) CancelOrder(orderId string, currency goex.CurrencyPair) (bool, error)
- func (bo *Bigone) GetAccount() (*goex.Account, error)
- func (bo *Bigone) GetDepth(size int, currencyPair goex.CurrencyPair) (*goex.Depth, error)
- func (bo *Bigone) GetExchangeName() string
- func (bo *Bigone) GetKlineRecords(currency goex.CurrencyPair, period, size, since int) ([]goex.Kline, error)
- func (bo *Bigone) GetOneOrder(orderId string, currencyPair goex.CurrencyPair) (*goex.Order, error)
- func (bo *Bigone) GetOrderHistorys(currencyPair goex.CurrencyPair, currentPage, pageSize int) ([]goex.Order, error)
- func (bo *Bigone) GetTicker(currency goex.CurrencyPair) (*goex.Ticker, error)
- func (bo *Bigone) GetTrades(currencyPair goex.CurrencyPair, since int64) ([]goex.Trade, error)
- func (bo *Bigone) GetUnfinishOrders(currencyPair goex.CurrencyPair) ([]goex.Order, error)
- func (bo *Bigone) LimitBuy(amount, price string, currency goex.CurrencyPair, ...) (*goex.Order, error)
- func (bo *Bigone) LimitSell(amount, price string, currency goex.CurrencyPair, ...) (*goex.Order, error)
- func (bo *Bigone) MarketBuy(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- func (bo *Bigone) MarketSell(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- type BigoneV3
- func (bo *BigoneV3) CancelOrder(orderId string, currency goex.CurrencyPair) (bool, error)
- func (bo *BigoneV3) GetAccount() (*goex.Account, error)
- func (bo *BigoneV3) GetDepth(size int, currencyPair goex.CurrencyPair) (*goex.Depth, error)
- func (bo *BigoneV3) GetExchangeName() string
- func (bo *BigoneV3) GetKlineRecords(currency goex.CurrencyPair, period, size, since int) ([]goex.Kline, error)
- func (bo *BigoneV3) GetOneOrder(orderId string, currencyPair goex.CurrencyPair) (*goex.Order, error)
- func (bo *BigoneV3) GetOrderHistorys(currencyPair goex.CurrencyPair, currentPage, pageSize int) ([]goex.Order, error)
- func (bo *BigoneV3) GetTicker(currency goex.CurrencyPair) (*goex.Ticker, error)
- func (bo *BigoneV3) GetTrades(currencyPair goex.CurrencyPair, since int64) ([]goex.Trade, error)
- func (bo *BigoneV3) GetUnfinishOrders(currencyPair goex.CurrencyPair) ([]goex.Order, error)
- func (bo *BigoneV3) LimitBuy(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- func (bo *BigoneV3) LimitSell(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- func (bo *BigoneV3) MarketBuy(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- func (bo *BigoneV3) MarketSell(amount, price string, currency goex.CurrencyPair) (*goex.Order, error)
- type CancelOrderResp
- type CandleResp
- type DepthResp
- type GetOneOrderResp
- type OrderListResp
- type OrderListV3Resp
- type PlaceOrderResp
- type ServerTimestampResp
- type TickerResp
Constants ¶
View Source
const ( V2 = "https://big.one/api/v2" V3 = "https://big.one/api/v3" TICKER_URI = "%s/markets/%s/ticker" DEPTH_URI = "%s/markets/%s/depth" ACCOUNT_URI = "%s/viewer/accounts" ORDERS_URI = "%s/viewer/orders" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResp ¶
type AccountResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data []struct { AssetID string `json:"asset_id"` AssetSymbol string `json:"asset_symbol"` AssetUUID string `json:"asset_uuid,omitempty"` Balance string `json:"balance"` LockedBalance string `json:"locked_balance"` } `json:"data"` }
type Bigone ¶
type Bigone struct {
// contains filtered or unexported fields
}
func (*Bigone) CancelOrder ¶
func (*Bigone) GetExchangeName ¶
func (*Bigone) GetKlineRecords ¶
func (*Bigone) GetOneOrder ¶
func (*Bigone) GetOrderHistorys ¶
func (*Bigone) GetUnfinishOrders ¶
func (*Bigone) LimitBuy ¶
func (bo *Bigone) LimitBuy(amount, price string, currency goex.CurrencyPair, opt ...goex.LimitOrderOptionalParameter) (*goex.Order, error)
func (*Bigone) LimitSell ¶
func (bo *Bigone) LimitSell(amount, price string, currency goex.CurrencyPair, opt ...goex.LimitOrderOptionalParameter) (*goex.Order, error)
func (*Bigone) MarketSell ¶
type BigoneV3 ¶
type BigoneV3 struct {
Bigone
}
func (*BigoneV3) CancelOrder ¶
func (*BigoneV3) GetExchangeName ¶
func (*BigoneV3) GetKlineRecords ¶
func (*BigoneV3) GetOneOrder ¶
func (*BigoneV3) GetOrderHistorys ¶
func (*BigoneV3) GetUnfinishOrders ¶
func (*BigoneV3) MarketSell ¶
type CancelOrderResp ¶
type CancelOrderResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { ID string `json:"id"` OrderID string `json:"id"` MarketUUID string `json:"market_uuid"` AssetPairName string `json:"asset_pair_name"` Price string `json:"price"` Amount string `json:"amount"` FilledAmount string `json:"filled_amount"` AvgDealPrice string `json:"avg_deal_price"` Side string `json:"side"` State string `json:"state"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } }
type CandleResp ¶
type CandleResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data []struct { Close string `json:"close"` High string `json:"high"` Low string `json:"low"` Open string `json:"open"` Time string `json:"time"` Volume string `json:"volume"` } `json:"data"` }
type DepthResp ¶
type DepthResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { MarketID string `json:"market_id"` AssetPairName string `json:"asset_pair_name"` Bids []struct { Price string `json:"price"` OrderCount int `json:"order_count"` Amount string `json:"amount,omitempty"` Quantity string `json:"quantity,omitempty"` } `json:"bids"` Asks []struct { Price string `json:"price"` OrderCount int `json:"order_count"` Amount string `json:"amount,omitempty"` Quantity string `json:"quantity,omitempty"` } `json:"asks"` } }
type GetOneOrderResp ¶
type GetOneOrderResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { OrderID int64 `json:"id"` AssetPairName string `json:"asset_pair_name"` Price string `json:"price"` Amount string `json:"amount"` FilledAmount string `json:"filled_amount"` AvgDealPrice string `json:"avg_deal_price"` Side string `json:"side"` State string `json:"state"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } }
type OrderListResp ¶
type OrderListResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { Edges []struct { Cursor string `json:"cursor"` Node struct { Amount string `json:"amount"` AvgDealPrice string `json:"avg_deal_price"` FilledAmount string `json:"filled_amount"` ID string `json:"id"` InsertedAt string `json:"inserted_at"` MarketID string `json:"market_id"` MarketUUID string `json:"market_uuid"` Price string `json:"price"` Side string `json:"side"` State string `json:"state"` UpdatedAt string `json:"updated_at"` } `json:"node"` } `json:"edges"` PageInfo struct { EndCursor string `json:"end_cursor"` HasNextPage bool `json:"has_next_page"` HasPreviousPage bool `json:"has_previous_page"` StartCursor string `json:"start_cursor"` } `json:"page_info"` } `json:"data"` }
type OrderListV3Resp ¶
type OrderListV3Resp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data []struct { ID int64 `json:"id"` AssetPairName string `json:"asset_pair_name"` Price string `json:"price"` Amount string `json:"amount"` FilledAmount string `json:"filled_amount"` AvgDealPrice string `json:"avg_deal_price"` Side string `json:"side"` State string `json:"state"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } `json:"data"` PageToken string `json:"page_token"` }
type PlaceOrderResp ¶
type PlaceOrderResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { Amount string `json:"amount"` AvgDealPrice string `json:"avg_deal_price"` FilledAmount string `json:"filled_amount"` ID string `json:"id"` OrderID int64 `json:"id"` InsertedAt string `json:"inserted_at"` CreatedAt string `json:"created_at"` MarketID string `json:"market_id"` AssetPairName string `json:"asset_pair_name"` MarketUUID string `json:"market_uuid"` Price string `json:"price"` Side string `json:"side"` State string `json:"state"` UpdatedAt string `json:"updated_at"` } `json:"data"` }
type ServerTimestampResp ¶
type ServerTimestampResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { Timetamp int64 `json:"timestamp"` } `json:"data"` }
type TickerResp ¶
type TickerResp struct { Errors []struct { Code int `json:"code"` Locations []struct { Column int `json:"column"` Line int `json:"line"` } `json:"locations"` Message string `json:"message"` Path []string `json:"path"` } `json:"errors"` Data struct { Ask struct { Amount string `json:"amount"` Price string `json:"price"` } `json:"ask"` Bid struct { Amount string `json:"amount"` Price string `json:"price"` } `json:"bid"` Close string `json:"close"` DailyChange string `json:"daily_change"` DailyChangePerc string `json:"daily_change_perc"` High string `json:"high"` Low string `json:"low"` MarketID string `json:"market_id"` MarketUUID string `json:"market_uuid"` Open string `json:"open"` Volume string `json:"volume"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.