diff --git a/.gitignore b/.gitignore index c93b5407..2d34abb6 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,8 @@ lib .vscode testdata/dump -testdata/writefiletest \ No newline at end of file +testdata/writefiletest + +# InteliJ +.idea +*.iml diff --git a/exchanges/poloniex/poloniex.go b/exchanges/poloniex/poloniex.go index 4a23e2a9..83399a2e 100644 --- a/exchanges/poloniex/poloniex.go +++ b/exchanges/poloniex/poloniex.go @@ -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) }