Quantweb3 Data API for quants
Project description
NexusData
NexusData revolutionizes decentralized market analysis by transforming complex data workflows into a single line of code. Designed for traders and developers, our platform seamlessly aggregates high-fidelity coin spots/contracts bar data from top exchanges like Binance and OKX, delivering:
- Zero-Learning-Code: Extract, clean, and structure raw data with one intuitive function
- Turbocharged Security: Local data vaulting ensures enterprise-grade protection + sub-millisecond access
- Future-Proof Scalability: Modular architecture primed for expanding exchange integrations
- Trade smarter: build faster – where simplicity meets institutional-grade data resilience.
Quick Start 🚀
Installation
pip install nexusdata
Basic Usage
from nexusdata import auth, fetch_data
- Authentication (Get credentials at https://quantweb3.ai/subscribe)
auth('your_username', 'your_token')
- Fetch Data Store the data in a local specified directory (csv format)
fetch_data()
Advanced Usage
Fetch data with custom parameters
fetch_data(
tickers=["BTCUSDT"],
store_dir="./tmp/data",
start_time=datetime.datetime(2021, 1, 1),
end_time=datetime.datetime(2022, 1, 2),
data_type="klines",
data_frequency="1m",
asset_class="um"
)
Function Parameters 📋
-
tickers (
list[str]):
A list of trading pairs to fetch data for.
Example:["BTCUSDT"]. -
store_dir (
str):
The directory path where the fetched data will be stored.
Example:"./tmp/data". -
start_time (
datetime.datetime):
The starting timestamp for the data retrieval.
Example:datetime.datetime(2021, 1, 1). -
end_time (
datetime.datetime):
The ending timestamp for the data retrieval.
Example:datetime.datetime(2022, 1, 2). -
data_type (
str):
The type of data to fetch. Defaults to"klines", which represents candlestick (OHLCV) data. -
data_frequency (
str):
The frequency at which the data is sampled.
Example:"1m"for one-minute intervals. -
asset_class (
str):
The asset class identifier. For instance,"um"might indicate a specific market type.
Note: The accepted values should be defined by your application context.
Data Structure 📊
The returned DataFrame contains the following columns:
| Column | Description |
|---|---|
| Open time | The moment when the candlestick period started. |
| Open | The opening price for the period. |
| High | The highest price reached during the period. |
| Low | The lowest price reached during the period. |
| Close | The closing price at the end of the period. |
| Volume | The total traded quantity during the period. |
| Close time | The moment when the candlestick period ended. |
| Quote asset volume | The traded volume in terms of the quote asset during the period. |
| Number of trades | The total number of trades executed during the period. |
| Taker buy base asset volume | The amount of the base asset bought by takers during the period. |
| Taker buy quote asset volume | The amount of the quote asset used for taker buy orders during the period. |
| Ignore | A field reserved for future use and typically disregarded. |
Authentication 🔑
- Visit Quantweb3.ai Subscription Page(Note: New users get a 7-day free trial)
- Register and obtain authentication credentials
- Use the
auth()function to authenticate
How to get free data service?
Note: Open an account using one of the above links and provide a screenshot to get 1 year's of free data service(Anyone).
Examples 📝
- You can view the demo on Google Colab by clicking here.
- You can also look at the example folder in the directory
Dependencies 📦
- python-snappy >= 0.7.2
- grpcio >= 1.64.1
- pandas >= 1.5.3
- protobuf >= 4.25.3
- tqdm >= 4.65.0
FAQ ❓
Q: How to handle authentication errors?
A: Ensure your username and token are correct, and check your network connection.
Q: What is the data update frequency?
A: Hstorical data is updated daily.
Contributing 🤝
Issues and Pull Requests are welcome!
License 📄
This project is licensed under the MIT License - see the LICENSE file for details
Contact 📧
- Website: quantweb3.ai
- Email: quantweb3.ai@gmail.com
- X: https://x.com/quantweb3_ai
- Telegram: https://t.me/+6e2MtXxoibM2Yzlk
Changelog 📝
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nexusdata-2.0.1.tar.gz.
File metadata
- Download URL: nexusdata-2.0.1.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
314bcf5b85ad374584fb59d053eeebb2dda7125bfe39235065ed78ee75677623
|
|
| MD5 |
6ebf0edfd9ad74a98c62ac0e2cebb791
|
|
| BLAKE2b-256 |
ec5ba9e3d2d196f688872f90e762e97d2a46b7ec858821a62640846c453657ed
|
Provenance
The following attestation bundles were made for nexusdata-2.0.1.tar.gz:
Publisher:
nexusdata.yml on Quantweb3-com/NexusData
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexusdata-2.0.1.tar.gz -
Subject digest:
314bcf5b85ad374584fb59d053eeebb2dda7125bfe39235065ed78ee75677623 - Sigstore transparency entry: 181442641
- Sigstore integration time:
-
Permalink:
Quantweb3-com/NexusData@3a7564b297dc4a0fa83fd6aa8e73623cc4fe854c -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/Quantweb3-com
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
nexusdata.yml@3a7564b297dc4a0fa83fd6aa8e73623cc4fe854c -
Trigger Event:
push
-
Statement type:
File details
Details for the file nexusdata-2.0.1-py3-none-any.whl.
File metadata
- Download URL: nexusdata-2.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efafdd5698de23c932476e54bdd009f4f34562b9bae2eac1c5758534c8385b52
|
|
| MD5 |
98734f8484c21e18a95cc516ade99cd2
|
|
| BLAKE2b-256 |
ed7ae323d012a73ed11afac16a4cceab5def098399545f04499e1e88e2cec02d
|
Provenance
The following attestation bundles were made for nexusdata-2.0.1-py3-none-any.whl:
Publisher:
nexusdata.yml on Quantweb3-com/NexusData
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nexusdata-2.0.1-py3-none-any.whl -
Subject digest:
efafdd5698de23c932476e54bdd009f4f34562b9bae2eac1c5758534c8385b52 - Sigstore transparency entry: 181442644
- Sigstore integration time:
-
Permalink:
Quantweb3-com/NexusData@3a7564b297dc4a0fa83fd6aa8e73623cc4fe854c -
Branch / Tag:
refs/tags/v2.0.1 - Owner: https://github.com/Quantweb3-com
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
nexusdata.yml@3a7564b297dc4a0fa83fd6aa8e73623cc4fe854c -
Trigger Event:
push
-
Statement type: