Documentation ¶
Index ¶
- Constants
- func SetAuthHeaders(method string, payload []byte, config *Config, u *url.URL, req Requester) (*http.Header, error)
- func WsParamForPrivate(sercret string) (now int, nonce, sign string)
- type Client
- func (c *Client) Addresses(req *address.Request) (*address.Response, error)
- func (c *Client) Balance(req *balance.Request) (*balance.Response, error)
- func (c *Client) Balances(req *list.RequestForBalances) (*list.ResponseForBalances, error)
- func (c *Client) Bankin(req *banks.RequestForIn) (*banks.ResponseForIn, error)
- func (c *Client) Bankout(req *banks.RequestForOut) (*banks.ResponseForOut, error)
- func (c *Client) Banks(req *banks.RequestForBanks) (*banks.ResponseForBanks, error)
- func (c *Client) Board(req *board.Request) (*board.Response, error)
- func (c *Client) BoardHealth(req *health.RequestForBoard) (*health.Board, error)
- func (c *Client) CancelAll(req *cancels.RequestForAllCancel) error
- func (c *Client) CancelByID(req *cancels.RequestByID) error
- func (c *Client) CancelByIDForParent(req *cancels.RequestByIDForParentCancel) error
- func (c *Client) Chats(req *chat.Request) (*chat.Response, error)
- func (c *Client) ChildOrder(req *orders.RequestForChildOrder) (*orders.ResponseForChildOrder, error)
- func (c *Client) ChildOrders(req *list.RequestForChildOrders) (*list.ResponseForChildOrders, error)
- func (c *Client) Coinin(req *coins.RequestForIn) (*coins.ResponseForIn, error)
- func (c *Client) Coinout(req *coins.RequestForOut) (*coins.ResponseForOut, error)
- func (c *Client) Collateral(req *collateral.Request) (*collateral.Response, error)
- func (c *Client) Collaterals(req *list.RequestForCollaterals) (*list.ResponseForCollaterals, error)
- func (c *Client) Commission(req *commission.Request) (*commission.Response, error)
- func (p *Client) Config() *Config
- func (p *Client) Do(req Requester, result interface{}) error
- func (c *Client) ExchangeHealth(req *health.RequestForExchange) (*health.Exchange, error)
- func (c *Client) Executions(req *execution.Request) (*execution.Response, error)
- func (p *Client) Host() string
- func (c *Client) MyExecutions(req *list.RequestForExecutions) (*list.ResponseForExecutions, error)
- func (c *Client) ParentOrder(req *orders.RequestForParentOrder) (*orders.ResponseForParentOrder, error)
- func (c *Client) ParentOrders(req *list.RequestForParentOrders) (*list.ResponseForParentOrders, error)
- func (c *Client) Positions(req *list.RequestForPositions) (*list.ResponseForPositions, error)
- func (c *Client) Ticker(req *ticker.Request) (*ticker.Response, error)
- func (c *Client) Withdraw(req *banks.RequestForWithdraw) (*banks.ResponseForWithdraw, error)
- type Config
- type Headers
- type Limit
- type Requester
Constants ¶
View Source
const ( // APIREMAIN API Limit for same IP APIREMAIN = 500 // APIREMAINFORORDER API Limit for orders/cancelAll APIREMAINFORORDER = 300 )
View Source
const ( // APIHOST is Endpoint APIHOST = "https://api.bitflyer.com" // APITIMEOUT http wait APITIMEOUT = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func SetAuthHeaders ¶
func SetAuthHeaders(method string, payload []byte, config *Config, u *url.URL, req Requester) (*http.Header, error)
SetAuthHeaders Signture to header
func WsParamForPrivate ¶
WsParamForPrivate return util for private websocket
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client Limit *Limit // contains filtered or unexported fields }
func (*Client) Balances ¶
func (c *Client) Balances(req *list.RequestForBalances) (*list.ResponseForBalances, error)
func (*Client) Bankin ¶
func (c *Client) Bankin(req *banks.RequestForIn) (*banks.ResponseForIn, error)
func (*Client) Bankout ¶
func (c *Client) Bankout(req *banks.RequestForOut) (*banks.ResponseForOut, error)
func (*Client) Banks ¶
func (c *Client) Banks(req *banks.RequestForBanks) (*banks.ResponseForBanks, error)
func (*Client) BoardHealth ¶
func (*Client) CancelByID ¶
func (c *Client) CancelByID(req *cancels.RequestByID) error
func (*Client) CancelByIDForParent ¶
func (c *Client) CancelByIDForParent(req *cancels.RequestByIDForParentCancel) error
func (*Client) ChildOrder ¶
func (c *Client) ChildOrder(req *orders.RequestForChildOrder) (*orders.ResponseForChildOrder, error)
func (*Client) ChildOrders ¶
func (c *Client) ChildOrders(req *list.RequestForChildOrders) (*list.ResponseForChildOrders, error)
一覧系 ¶
func (*Client) Coinin ¶
func (c *Client) Coinin(req *coins.RequestForIn) (*coins.ResponseForIn, error)
func (*Client) Coinout ¶
func (c *Client) Coinout(req *coins.RequestForOut) (*coins.ResponseForOut, error)
func (*Client) Collateral ¶
func (c *Client) Collateral(req *collateral.Request) (*collateral.Response, error)
func (*Client) Collaterals ¶
func (c *Client) Collaterals(req *list.RequestForCollaterals) (*list.ResponseForCollaterals, error)
func (*Client) Commission ¶
func (c *Client) Commission(req *commission.Request) (*commission.Response, error)
func (*Client) ExchangeHealth ¶
func (*Client) Executions ¶
func (*Client) MyExecutions ¶
func (c *Client) MyExecutions(req *list.RequestForExecutions) (*list.ResponseForExecutions, error)
func (*Client) ParentOrder ¶
func (c *Client) ParentOrder(req *orders.RequestForParentOrder) (*orders.ResponseForParentOrder, error)
func (*Client) ParentOrders ¶
func (c *Client) ParentOrders(req *list.RequestForParentOrders) (*list.ResponseForParentOrders, error)
func (*Client) Positions ¶
func (c *Client) Positions(req *list.RequestForPositions) (*list.ResponseForPositions, error)
func (*Client) Withdraw ¶
func (c *Client) Withdraw(req *banks.RequestForWithdraw) (*banks.ResponseForWithdraw, error)
type Limit ¶
Limit is API Limit, ForOrder is Order(child/parent), CancelAll
func (*Limit) CheckForOrder ¶
CheckForOrder is check API limit for Order method
func (*Limit) Set ¶
Set X-xxxからLimitを取得 wg.Workgroup: 174748 6572 ns/op permutation: 414080 2934 ns/op
func (*Limit) SetThreshold ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.