# How to access history files through python for purposes of back testing a trading bot

**URL:** <https://community.deriv.com/t/how-to-access-history-files-through-python-for-purposes-of-back-testing-a-trading-bot/25602>\
**Category:** General Discussion\
**Created:** [January 12, 2022, 4:14pm UTC](https://community.deriv.com/t/how-to-access-history-files-through-python-for-purposes-of-back-testing-a-trading-bot/25602 "2022-01-12T16:14:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![centrum-acceder-2](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@centrum-acceder-2](https://community.deriv.com/u/centrum-acceder-2)\
**Post date:** [January 12, 2022, 4:14pm UTC](https://community.deriv.com/t/how-to-access-history-files-through-python-for-purposes-of-back-testing-a-trading-bot/25602/1 "2022-01-12T16:14:49Z")

</div>

How can I download/access history files for a period up to 2 years or more, from a python algorithm, for the purposes of back testing a trading bot?
