Add REST and websocket support for BTSE (#250)

* Add REST and websocket support for BTSE exchange

TO-DO: Finish wrappers and expand test coverage

* Fill out wrapper funcs and expand test coverage
This commit is contained in:
Adrian Gallagher
2019-03-08 16:33:10 +11:00
committed by GitHub
parent 6d6b0ae067
commit 3ac8b7746f
44 changed files with 1543 additions and 52 deletions

View File

@@ -155,7 +155,7 @@ func (a *Alphapoint) CancelAllOrders(orderCancellation exchange.OrderCancellatio
}
// GetOrderInfo returns information on a current open order
func (a *Alphapoint) GetOrderInfo(orderID int64) (float64, error) {
func (a *Alphapoint) GetOrderInfo(orderID string) (float64, error) {
orders, err := a.GetOrders()
if err != nil {
return 0, err
@@ -163,7 +163,7 @@ func (a *Alphapoint) GetOrderInfo(orderID int64) (float64, error) {
for x := range orders {
for y := range orders[x].OpenOrders {
if int64(orders[x].OpenOrders[y].ServerOrderID) == orderID {
if strconv.Itoa(orders[x].OpenOrders[y].ServerOrderID) == orderID {
return orders[x].OpenOrders[y].QtyRemaining, nil
}
}