浏览代码

MKT

- draft
Alexey Kim 10 月之前
父节点
当前提交
4b8cc821ba
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      mkt.go

+ 4 - 1
mkt.go

@@ -8,13 +8,16 @@ type MKT interface {
 	IsOpen() bool
 	IsOpen() bool
 	Cooldown() uint8
 	Cooldown() uint8
 
 
+	Connect(done chan struct{}) (chan MarketConnection, error)
+	Subscribe(symbols ...string) error
+
 	Account() (MarketAccount, error)
 	Account() (MarketAccount, error)
 
 
 	CreateOrder(symbol string, quantity uint, sl float64) (Order, error)
 	CreateOrder(symbol string, quantity uint, sl float64) (Order, error)
 	UpdateOrder(orderID string, sl float64) error
 	UpdateOrder(orderID string, sl float64) error
 	CloseOrder(orderID string) (Order, error)
 	CloseOrder(orderID string) (Order, error)
 
 
-	Order(oid string, nested bool) (Order, error)
+	Order(orderID string, nested bool) (Order, error)
 	Orders(status string, from time.Time, until time.Time, nested bool) ([]Order, error)
 	Orders(status string, from time.Time, until time.Time, nested bool) ([]Order, error)
 	Portfolio() (Portfolio, error)
 	Portfolio() (Portfolio, error)
 	PortfolioHistory() ([]PortfolioRecord, error)
 	PortfolioHistory() ([]PortfolioRecord, error)