Skip to main content

A module for detecting price oscillations in financial assets

Project description

Oscillation Spotter - Oscillation Detection Module

Overview

The Oscillation Spotter module provides a unique approach to detect sharp oscillations in financial asset prices (e.g., stocks, cryptocurrencies) over very short timeframes. This software is open-source and offers the ability to detect areas of rapid price movement, helping researchers and analysts to explore potential correlations between certain events and price trends.

Example plot results: img.png

Why Use This Module?

  • Difficulty in Identifying Sharp Movements: It is very challenging to distinguish between sharp movements caused by specific events directly affecting an asset's price. Such events might be caused by sudden news or specific market actions.

  • Manual Marking is Time-Consuming: Even if you try to manually mark the price graph, it will take an enormous amount of time, especially when dealing with situations where you only want to test the feasibility of a potential correlation between specific events and their impact on a given asset's price trend.

  • Focus on Short, Strong Oscillations: Often, many price movements make it difficult to focus on those that matter most. These are the short-term, strong oscillations that usually occur within 10 to 120 seconds, signaling an undeniable sharp price change.

  • First Open-Source Model for Oscillation Detection: This is the first open-source model that allows detection of new oscillations. The information produced can be used later to run AI models to investigate whether specific parameters occur during detected oscillations.

Features

  • Automated Oscillation Detection: Automatically detects short, sharp oscillations, typically ranging from 10 to 120 seconds.
  • Filtering Noise: Filters out non-significant fluctuations, enabling users to focus on meaningful price changes.
  • Educational Use Only: This software is strictly provided for educational and personal research purposes.

Installation

You can install the library using the provided setup.py file. Make sure to have Python 3.7 or later.

  1. Clone the repository:
    git clone https://github.com/Buki5/spotter_oscillation.git
    
  2. Navigate to the project directory:
    cd spotter_oscillation
    
  3. Install the requirements:
    pip install -r requirements.txt
    

Note: The system requires an active internet connection for usage monitoring. No data is stored except for the IP address and MAC address.

Usage

Basic Usage Example

The module provides several functions that help in processing oscillations within a financial asset's price data. Below is an example usage of the main function process_oscillations():

import pandas as pd
import pyarrow.parquet as pq

# Load data (for example from a parquet file)
table = pq.read_table("path/to/your/data.parquet")
df = table.to_pandas()

# Process the oscillations for a given asset
from spotter_oscillation.analytics_module import process_oscillations

processed_df = process_oscillations(df, time_column="time", price_column="price", plot=True)

In this example, we load a parquet file containing financial asset price data and pass it to the process_oscillations() function. The function returns a processed data with oscillation detections and plots the results.

License Notice

  • Educational Use Only: This software is provided solely for educational purposes. Any commercial use, including sale, lease, or provision of services using this software, requires explicit permission from the author.
  • Unauthorized Use Prohibited: Redistribution or modification of this software without the owner's consent is strictly prohibited.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotter_oscillation-1.9.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spotter_oscillation-1.9.2-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file spotter_oscillation-1.9.2.tar.gz.

File metadata

  • Download URL: spotter_oscillation-1.9.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for spotter_oscillation-1.9.2.tar.gz
Algorithm Hash digest
SHA256 4243a0ec1d2eb38b5f9f3499cd9f4bd3b51cc47325d5642c23cb104ab0b6c39d
MD5 f4221acbd7443ef8f6e25cea4a1a4701
BLAKE2b-256 9a3c4f2405e3e345aff565ceb3d83a5e297500245a34020f4b1214c70958e60a

See more details on using hashes here.

File details

Details for the file spotter_oscillation-1.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for spotter_oscillation-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94bf6314014c050a85cdf0d776d2175b583abf6cdb343df4de2abccb4f1e37a3
MD5 d1bef0e50ad41b366e4acf24833cf4f7
BLAKE2b-256 9d80c487e48f881c255c36c9f3d7b5b24e9d627a18215853ebceb874f5f34df9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page