miro-ka / mosquito

Trading Bot with focus on Evolutionary Algorithms and Machine Learning
GNU General Public License v3.0
260 stars 53 forks source link

poloniex: add returnTradeHistory api endpoint #63

Closed miro-ka closed 6 years ago

miro-ka commented 6 years ago

Trading history from poloniex should be implemented into backfill as well into strategies

miro-ka commented 6 years ago

more info:

returnTradeHistory Returns the past 200 trades for a given market, or up to 50,000 trades between a range specified in UNIX timestamps by the "start" and "end" GET parameters. Sample output:

[{"date":"2014-02-10 04:23:23","type":"buy","rate":"0.00007600","amount":"140","total":"0.01064"},{"date":"2014-02-10 01:19:37","type":"buy","rate":"0.00007600","amount":"655","total":"0.04978"}, ... ]

Call: https://poloniex.com/public?command=returnTradeHistory&currencyPair=BTC_NXT&start=1410158341&end=1410499372

miro-ka commented 6 years ago

done