Liberal Alpha Python SDK for interacting with gRPC-based backend
Project description
Liberal Alpha SDK
📡 Liberal Alpha SDK 是一个用于与 gRPC 后端交互的 Python SDK,适用于需要提交数据、处理 Alpha 信号的用户。
🚀 安装
在终端运行以下命令:
pip install liberal_alpha
📖 使用示例
1️⃣ 初始化 SDK
你可以使用 默认参数 初始化:
from liberal_alpha import initialize, liberal
initialize()
或者 自定义参数:
initialize(host="127.0.0.1", port=8128)
2️⃣ 发送数据
JSON_Object = {
"Price": 100000,
"Volume": 50,
"Volume_USD": 5000000,
}
liberal.send_data("BTC_SOURCE1", JSON_Object, record_id="1")
3️⃣ 发送 Alpha 信号
alpha_data = {
"signal": "buy",
"confidence": 0.85
}
liberal.send_alpha("Alpha_ID", alpha_data, record_id="1")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liberal_alpha-0.1.3.tar.gz
(11.1 kB
view details)
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 liberal_alpha-0.1.3.tar.gz.
File metadata
- Download URL: liberal_alpha-0.1.3.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da30009ec76bf4e3920285bddde73121972c338d7e0234d7eaf7c73a45a9b5e4
|
|
| MD5 |
0121dd3e1d938865f9253ca6cbbd7f2a
|
|
| BLAKE2b-256 |
f20a0cce5cfb7b794c20ee7c9c4ca75a78d27f6a316c02dc5ab44fade585c636
|
File details
Details for the file liberal_alpha-0.1.3-py3-none-any.whl.
File metadata
- Download URL: liberal_alpha-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f091fad73a4d65a5b04f1e85aa6fb25d4a05ff96518a8465be80b9005812d0a
|
|
| MD5 |
4b666bfeafb13bfe0d982c0b322de1bf
|
|
| BLAKE2b-256 |
e19f9e8517ea12f3ea892625cd93258ffd21f3c9ab0138d4a504c055889f9adc
|