Initial implementation of interface function for getting exchange history.

This commit is contained in:
Ryan O'Hara-Reid
2018-02-26 09:00:30 +11:00
parent 2ca907c341
commit 10d5abacb3
28 changed files with 220 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package itbit
import (
"errors"
"log"
"strconv"
@@ -107,3 +108,10 @@ func (i *ItBit) GetExchangeAccountInfo() (exchange.AccountInfo, error) {
response.ExchangeName = i.GetName()
return response, nil
}
// GetExchangeHistory returns historic trade data since exchange opening.
func (i *ItBit) GetExchangeHistory(p pair.CurrencyPair, assetType string) ([]exchange.TradeHistory, error) {
var resp []exchange.TradeHistory
return resp, errors.New("trade history not yet implemented")
}