Documentation ¶
Index ¶
- type Client
- func (ex *Client) Borrow(margin fintypes.Margin, asset string, amount gdecimal.Decimal) error
- func (ex *Client) CancelOrder(id fintypes.OrderId) error
- func (ex *Client) GetAccount() (*fintypes.Account, error)
- func (ex *Client) GetBorrowable(margin fintypes.Margin, asset string) (gdecimal.Decimal, error)
- func (ex *Client) GetCandleSticks(market fintypes.Market, target fintypes.Pair, period fintypes.Period, ...) (*fintypes.CandleSticks, error)
- func (ex *Client) GetClosedOrders(market fintypes.Market, target fintypes.Pair, beginTime time.Time, ...) ([]fintypes.Order, error)
- func (ex *Client) GetDepth(market fintypes.Market, target fintypes.Pair) (*fintypes.Depth, error)
- func (ex *Client) GetMarketInfo(ignorePairsNotFound bool) (*fintypes.MarketInfo, error)
- func (ex *Client) GetOpenOrders(market *fintypes.Market, margin *fintypes.Margin, target *fintypes.Pair) ([]fintypes.Order, error)
- func (ex *Client) GetOrder(id fintypes.OrderId) (*fintypes.Order, error)
- func (ex *Client) GetTicks(ignorePairsNotFound bool) (map[fintypes.PairM]fintypes.Tick, error)
- func (ex *Client) Property() *fintypes.ExProperty
- func (ex *Client) Repay(margin fintypes.Margin, asset string, amount gdecimal.Decimal) error
- func (ex *Client) Trade(market fintypes.Market, margin fintypes.Margin, leverage int, ...) (*fintypes.OrderId, error)
- func (ex *Client) Transfer(asset string, amount gdecimal.Decimal, from, to fintypes.SubAcc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(accessKey, secretKey, proxy string, c gtime.Clock, email string, cfgClient *gconfig.Client) (*Client, error)
email is required in living trading, but not required in kline spider
func (*Client) CancelOrder ¶
https://www.kraken.com/features/api#cancel-open-order Cancel order by order Id.
func (*Client) GetAccount ¶
Get account balance.
func (*Client) GetBorrowable ¶
func (*Client) GetCandleSticks ¶
func (ex *Client) GetCandleSticks(market fintypes.Market, target fintypes.Pair, period fintypes.Period, since *time.Time) (*fintypes.CandleSticks, error)
Get candle sticks.
func (*Client) GetClosedOrders ¶
func (ex *Client) GetClosedOrders(market fintypes.Market, target fintypes.Pair, beginTime time.Time, endTime time.Time) ([]fintypes.Order, error)
https://www.kraken.com/features/api#get-closed-orders Get closed orders' info by time range.
func (*Client) GetMarketInfo ¶
func (ex *Client) GetMarketInfo(ignorePairsNotFound bool) (*fintypes.MarketInfo, error)
https://www.kraken.com/features/api#get-tradable-pairs Get market details.
func (*Client) GetOpenOrders ¶
func (*Client) GetOrder ¶
https://www.kraken.com/features/api#query-orders-info Get order's info by order Id.
func (*Client) Property ¶
func (ex *Client) Property() *fintypes.ExProperty
Click to show internal directories.
Click to hide internal directories.