{ "cells": [ { "cell_type": "markdown", "id": "72ef68e9", "metadata": {}, "source": [ "Let's try to get filepath of any candlesticks file." ] }, { "cell_type": "code", "execution_count": 2, "id": "a58c80ee", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "PosixPath('/home/parf/projects/marketTrade/data/candlesticks/NZDUSD_5S_2020.09.01_2020.09.30.csv')" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import market_trade.constants\n", "\n", "candlesticks_filepaths = [filepath for filepath in market_trade.constants.CANDLESTICK_DATASETS_PATH.iterdir()]\n", "candlesticks_filepath = candlesticks_filepaths[0]\n", "candlesticks_filepath" ] }, { "cell_type": "markdown", "id": "a2d71d52", "metadata": {}, "source": [ "Let's import that file to pandas" ] }, { "cell_type": "code", "execution_count": 18, "id": "1be511b6", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | open | \n", "high | \n", "low | \n", "close | \n", "vol | \n", "
|---|---|---|---|---|---|
| 0 | \n", "0.67331 | \n", "0.67362 | \n", "0.67331 | \n", "0.67361 | \n", "26.24 | \n", "
| 1 | \n", "0.67361 | \n", "0.67362 | \n", "0.67361 | \n", "0.67362 | \n", "4.25 | \n", "
| 2 | \n", "0.67362 | \n", "0.67362 | \n", "0.67362 | \n", "0.67362 | \n", "0.00 | \n", "
| 3 | \n", "0.67365 | \n", "0.67365 | \n", "0.67363 | \n", "0.67363 | \n", "5.50 | \n", "
| 4 | \n", "0.67364 | \n", "0.67364 | \n", "0.67363 | \n", "0.67364 | \n", "10.44 | \n", "