This commit is contained in:
Adrian Gallagher
2018-01-09 15:42:35 +11:00
2 changed files with 10 additions and 2 deletions

6
.gitignore vendored
View File

@@ -5,4 +5,8 @@ lib
.vscode
testdata/dump
testdata/writefiletest
testdata/writefiletest
# InteliJ
.idea
*.iml

View File

@@ -369,13 +369,17 @@ func (p *Poloniex) GetOpenOrders(currency string) (interface{}, error) {
}
}
func (p *Poloniex) GetAuthenticatedTradeHistory(currency, start, end string) (interface{}, error) {
func (p *Poloniex) GetAuthenticatedTradeHistory(currency, start, end, limit string) (interface{}, error) {
values := url.Values{}
if start != "" {
values.Set("start", start)
}
if limit != "" {
values.Set("limit", limit)
}
if end != "" {
values.Set("end", end)
}