Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Support API calls of top cryptocurrency exchanges
Support trading and analysis tools for cryptocurrency market
The project aims to answer the following two questions:
How to get historical data, especially a long period, in a single query?
How to send exchange API query in an elegent fashion?
Python 3.5+
You can install it via pip for static version
pip install libcryptomarket
or development version
pip install git+https://github.com/libcryptomarket/libcryptomarket.git
This library is to extend the library ccxt on more powerful functions. So the supported exchanges are same as ccxt while a few exchanges are extended with the following features. You just need to import the exchange from libcryptomarket.
from datetime import datetime
import libcryptomarket
poloniex = libcryptomarket.poloniex()
candles = libcryptomarket.fetch_candles(
symbol="ETH/BTC",
start_time=datetime(2018, 1, 1),
end_time=datetime(2018, 1, 30),
frequency="30m")
from datetime import datetime
import libcryptomarket
poloniex = libcryptomarket.poloniex()
candles = libcryptomarket.fetch_latest_candles(
symbols=["ETH/BTC", "LTC/BTC"],
frequency="30m",
frequency_count=5)
Exchange | candles | latest_candles |
---|---|---|
Poloniex | v | v |
Bitfinex | v | v |
GDAX | v | v |
Console usage is for exporting historical data.
request-candles --exchange poloniex --symbols ETH/BTC LTC/BTC --frequency 30m --start-time 2018-01-01 --end-time 2018-01-31 --output test.csv
The project is targeting as a core but generic toolkit to query cryptocurrency market, so we are happy if you join to contribute and make it better. Please do not hesitate to contact us (gavincyi at gmail dot com).
FAQs
Library for cryptocurrency market information.
We found that libcryptomarket 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.