redistimeseries-py | RedisTimeSeries python client | Command Line Interface library
kandi X-RAY | redistimeseries-py Summary
kandi X-RAY | redistimeseries-py Summary
redistimeseries-py is a package that gives developers easy access to RedisTimeSeries module. The package extends redis-py's interface with RedisTimeSeries's API.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parse M_GET response
- Convert a list to a dict
- Parse M_M_Range response
- Parse a range response
- Return the version of redistime
redistimeseries-py Key Features
redistimeseries-py Examples and Code Snippets
Community Discussions
Trending Discussions on redistimeseries-py
QUESTION
I am currently trying to do a simple implementation for stock price candle sticks. Let's say we have a stock called XYZ. This stock receives a stream of prices (in no particular frequency), which (for example) looks like: XYZ: [10.2, 10.7, 12, 11 ....].
The objective is to record some metrics for every minute that passes to reflect the state of that stock. A candle stick has metrics like Closing price (last known price within a minute), High Price (maximum price within a minute)...etc.
One way I thought I can implement this is by using Redis TimeSeries. I considered this solution because I can create rules on the stream of prices, and every 60 seconds it would flush some aggregations (like: max, min, first..etc.) to a destination bucket.
My current implementation using Redis TimeSeries (in Python) for candle sticks for each stock price looks something like this (using stock XYZ as example again) and no labels for simplicity:
...ANSWER
Answered 2020-Jun-24 at 09:57- There is no option to send more than one aggregation to a downsample series since each timestamp can hold a single. You can utilize labels to query all series at once.
- RedisTimeSeries would be a good solution as it will downsample your data at insertion so querying it would be super fast. It also uses double-delta compression which means your data will require lesser memory than some other solutions. You can even use retention to retire the source data if all you care about is the candlesticks.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install redistimeseries-py
You can use redistimeseries-py like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page