
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
A python package that interfaces with the tickerdax.com REST and websockets API. It handles common data operations like batch downloading data, streaming real-time data, and caching data locally to minimize network requests.
You can install this package with pip by running the command below.
pip install tickerdax
This client interfaces with a redis docker container. In order for the package to work, you must first install docker. Here are instructions per platform.
Note on windows you must first install WSL then you can install docker. Instructions
Here is a basic example of getting historical data using the python SDK.
from pprint import pprint
from datetime import datetime, timezone
from tickerdax.client import TickerDax
client = TickerDax()
pprint(client.get_route(
route='order-book/predictions/v1/50',
symbols=["BTC"],
start=datetime.now(tz=timezone.utc),
end=datetime.now(tz=timezone.utc)
))
Note that if this data doesn't exist in your cache, the data will be fetched from the REST API. All subsequent calls to the same data will only be from the cache and not the REST API. This is designed give you lighting fast responses and ultimately deliver data to you a cheaper cost.
This is how you can stream data to your cache. This will run indefinitely and fill your local cache as new data is available.
client.stream(
routes={
'order-book/predictions/v1/50': ['BTC', 'LTC'],
},
)
In another process you can call client.get_route()
as many times you like or whenever your
app re-evaluates. The data will be available once it is updated by the stream.
Read the user documentation here.
FAQs
A python client for tickerdax.com with a built-in caching system.
We found that tickerdax demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.