weex

package
v0.0.0-...-f37401a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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
}

Client 提供weex API的调用客户端

func NewClient

func NewClient(config *config.Config) *Client

NewClient 创建一个新的client

func (*Client) CancelOrder

func (c *Client) CancelOrder(req global.CancelReq) error

CancelOrder 撤销一个订单请求 注意,返回OK表示撤单请求成功。订单是否撤销成功请调用订单查询接口查询该订单状态

func (*Client) GetAllSymbol

func (c *Client) GetAllSymbol() ([]global.TradeSymbol, error)

GetAllSymbol 交易市场详细行情接口

func (*Client) GetDepth

func (c *Client) GetDepth(req global.TradeSymbol) (global.Depth, error)

GetDepth 获取深度行情

func (*Client) GetFund

func (c *Client) GetFund(global.FundReq) ([]global.Fund, error)

GetFund 获取帐号资金余额

func (*Client) GetKline

func (c *Client) GetKline(req global.KlineReq) ([]global.Kline, error)

GetKline 获取k线数据

func (*Client) InsertOrder

func (c *Client) InsertOrder(req global.InsertReq) (global.InsertRsp, error)

InsertOrder 下单

func (*Client) OrderStatus

func (c *Client) OrderStatus(req global.StatusReq) (global.StatusRsp, error)

OrderStatus 查询某个订单详情 @note: api不能根据订单号进行查询,所有智能通过查询成交再根据订单号进行筛选的方式判断

func (*Client) SubDepth

func (c *Client) SubDepth(sreq global.TradeSymbol) (chan global.Depth, error)

SubDepth 订阅深度行情

func (*Client) SubLateTrade

func (c *Client) SubLateTrade(sreq global.TradeSymbol) (chan global.LateTrade, error)

SubLateTrade 查询交易详细数据

func (*Client) SubTicker

func (c *Client) SubTicker(sreq global.TradeSymbol) (chan global.Ticker, error)

SubTicker ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL