Git Product home page Git Product logo

Comments (4)

alparamonov avatar alparamonov commented on May 27, 2024

@FlynnMa This sounds interesting. Can you elaborate more? I could imagine using the library for pumping data into time series db with near real time and cold processing capabilities around it. But for me it is more like how you use the lib and not about implementation of the lib. What's your idea?

from yliveticker.

FlynnMa avatar FlynnMa commented on May 27, 2024

Hi,

Here is a quick pandas based time series for example, it looks like:
image

Here is piece of code fetching data use yfinance for your reference

import yfinance as yf
sym = 'AAPL'


apple = yf.Ticker(sym)
apple_dataframe = apple.history(period='1d', interval='1m')
apple_dataframe

once you got a time series based dataframe, it can be easily resampled like:

 ohlcv_dict = {
                'Open': 'first',
                'High': 'max',
                'Low': 'min',
                'Close': 'last',
                'Volume': 'sum'}
apple_dataframe = apple_dataframe .resample('10min').agg(ohlcv_dict)

from yliveticker.

alparamonov avatar alparamonov commented on May 27, 2024

Ok, got you. Would like this functionality to be added to this lib or better another separate lib?

from yliveticker.

FlynnMa avatar FlynnMa commented on May 27, 2024

I would suggest add into this lib,
For most data analysis, the time series based data would enable everyone's life easier, or else I am afraid all of them will need to do the data cooking before they can go.

from yliveticker.

Related Issues (9)

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.