Giter Site home page Giter Site logo

james19190 / altcoin_closeprice_bivariateanalysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 297 KB

A data analysis program that compares historical crypto_asset spot prices and tries to find leading and lagging indicator pairs

Jupyter Notebook 99.42% Python 0.58%

altcoin_closeprice_bivariateanalysis's Introduction

Crypto Asset Historical Spot Price Analysis

Overview

This Python program performs historical analysis on crypto asset spot prices, aiming to identify leading and lagging indicator pairs. The analysis involves utilizing the Binance API for fetching historical data, Websockets for real-time data updates, and the Dynamic Time Warping (DTW) algorithm for comparing time series data.

Features

  • Historical Data Retrieval: Utilizes the Binance API to fetch historical spot prices for crypto assets.
  • Real-time Updates: Incorporates Websockets for real-time updates on crypto asset spot prices.
  • Dynamic Time Warping (DTW): Applies DTW algorithm for measuring similarity between time series data and identifying leading/lagging indicators.

Requirements

Ensure you have the following dependencies installed:

  • Python 3.x
  • pandas
  • websockets
  • ccxt (for Binance API integration)
  • scipy (for Dynamic Time Warping)

Usage

  1. Close the Repository
git clone https://github.com/james19190/AltCoin_ClosePrice_BivariateAnalysis.git
  1. Navigate to the project directory:
cd crypto-analysis
  1. Install dependencies
pip install -r requirements.txt
  1. Run the Program
python crypto_analysis.py

Configuration

Open the config.py file and update the following parameters:

  • API_KEY: Your Binance API key.
  • API_SECRET: Your Binance API secret.
  • SYMBOL: The crypto asset symbol to analyze (e.g., 'BTCUSDT').
  • TIME_FRAME: The time frame for historical data (e.g., '1h' for 1-hour intervals).
  • Add any additional configuration parameters as needed.
  • Save the config.py file.

Notes

  • Ensure that you have obtained API credentials from Binance and have proper permissions.
  • This program is a starting point and can be extended for more sophisticated analysis based on your requirements.
  • Be cautious with API key storage and sharing. Keep them secure and avoid including them in version control.

altcoin_closeprice_bivariateanalysis's People

Contributors

james19190 avatar

Watchers

 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.