Coder Social home page Coder Social logo

erfaniaa / financial-dataset-generator Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 1.0 35 KB

Financial Dataset Generator

License: GNU General Public License v3.0

Python 100.00%
crypto cryptocurrency dataset finance financial-data machine-learning yfinance yfinance-api algo-trading python time-series time-series-analysis trading

financial-dataset-generator's Introduction

Financial Dataset Generator

Easy-to-use dataset generator for applying machine learning on financial markets

Features

  • You can run it fast, and it is easy to use.
  • There are no complexities and no database usage in this project. Even dependencies are a few.
  • It is easy to modify and customize.
  • This project generates practical datasets for data scientists.
  • You can read the code for educational purposes.

Run

  1. Clone the repository.
  2. Run pip3 install -r requirements.txt.
  3. Put your Nasdaq Data Link API key in the API_KEY file.
  4. Run python3 main.py.

This will generate train set and test set for you.

Config

For the configuration, you can:

  • Change config.py constants.
  • Define new indicators in indicators.py.

Config.py Description

  • PAIR_NAMES_LIST_WITH_SOURCE: What's your machine learning model input?
  • TARGET_PAIR_NAME_WITH_SOURCE: What's your machine learning model output?
  • SMA_LENGTHS_LIST: Do you want to generate a dataset with some moving averages?
  • APPLY_FLIP_AUGMENTATION and APPLY_NOISE_AUGMENTATION: Using data augmentations
  • AUGMENTATION_NOISE_INTERVAL: Set the amount of augmentation noise
  • TRAIN_DATASET_NEW_SIZE_COEFFICIENT: How much augmented data do you want?
  • START_TIME and END_TIME: The time interval for the dataset
  • FORECAST_DAYS: How many days is your target?
  • USE_WMA_FOR_FORECAST_DAYS: Do you want to use linear weighted moving average for your target?
  • NUMBER_OF_CANDLES: Number of candles your machine learning model needs as its input
  • TRAIN_CSV_FILE_PATH, TEST_CSV_FILE_PATH, and PREDICT_CSV_FILE_PATH: Output CSV file paths
  • TEST_SET_SIZE_RATIO: Test set size to whole dataset size ratio
  • CSV_DELIMITER: The delimiter in every generated CSV file
  • API_KEY_FILE_PATH: Path to the Nasdaq Data Link API key file

See Also

Credits

Erfan Alimohammadi and Amir Reza Shahmiri

financial-dataset-generator's People

Contributors

erfaniaa avatar

Stargazers

Dhimas Fauzan Al Asri avatar M.H.Zarei avatar Eric Low avatar  avatar Patrick Madden avatar  avatar Wilhem Kornhauser avatar Mohammadreza Razavian avatar  avatar Amin Shafiei avatar Mohammadhossein Zarei avatar Tolulope Jegede avatar Sajad Shokri avatar Reza Kazemi avatar Erfan Khabareh avatar Bahar avatar Thomas Coats avatar MehrdadLinux avatar Hadi avatar  avatar Navid Ht avatar Sina Aghaee avatar Hamidreza Sahraei avatar jaber zare avatar Ehsan Karimi avatar Erfan Abedi avatar bxio avatar Sajad F. Maghrebi avatar Mohammad avatar Sadra Teymourian avatar Michael Bykovski avatar Farshad Bolouri avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.