Skip to content

Instantly share code, notes, and snippets.

@luizcarvalho
Created June 26, 2019 17:45
Show Gist options
  • Save luizcarvalho/1ef68cf0f15e063a85f41b593d36055a to your computer and use it in GitHub Desktop.
Save luizcarvalho/1ef68cf0f15e063a85f41b593d36055a to your computer and use it in GitHub Desktop.
Script to export binance trade history
function doit(date) {
document.querySelector("body > div.wrap > div > div > div.filters > div > a").click();
var date_field = document.getElementById("dateRange")
date_field.value = date;
document.getElementsByClassName("btn btn-orange btn-block ng-binding")[0].click()
}
/*
doit('2019-06-26 ~ 2019-03-26')
doit('2019-03-26 ~ 2018-12-26')
doit('2018-12-26 ~ 2018-09-26')
doit('2018-09-26 ~ 2018-06-26')
doit('2018-06-26 ~ 2018-03-26')
doit('2018-03-26 ~ 2017-12-26')
doit('2017-12-26 ~ 2017-09-26')
doit('2017-09-26 ~ 2017-06-26')
doit('2017-06-26 ~ 2017-03-26')
doit('2017-03-26 ~ 2016-12-26')
doit('2016-12-26 ~ 2016-09-26')
doit('2016-09-26 ~ 2016-06-26')
doit('2016-06-26 ~ 2016-03-26')
doit('2016-03-26 ~ 2015-12-26')
doit('2015-12-26 ~ 2015-09-26')
doit('2015-09-26 ~ 2015-06-26')
doit('2015-06-26 ~ 2015-03-26')
doit('2015-03-26 ~ 2014-12-26')
doit('2014-12-26 ~ 2014-09-26')
doit('2014-09-26 ~ 2014-06-26')
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment