Skip to main content

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


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.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liberal_alpha-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file liberal_alpha-0.1.2.tar.gz.

File metadata

  • Download URL: liberal_alpha-0.1.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for liberal_alpha-0.1.2.tar.gz
Algorithm Hash digest
SHA256 040e720276dd5b8205d543b2340e42a95ffe5f7fb4f813813b818f8844f67b9e
MD5 c2bf007bcb21255707cab44030744d31
BLAKE2b-256 775c4e566c65d67146ce8409b0901166738d35fa3cc9653bfb3fd9729ab48d51

See more details on using hashes here.

File details

Details for the file liberal_alpha-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: liberal_alpha-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for liberal_alpha-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1396828e9f66ac0bcb40d15ccc9a306ecfa6b97a08c576eda3241014db748fc2
MD5 aefe98e3d3c343cdb12e4a361b18b590
BLAKE2b-256 edc7c6e111e28a131c5bc4b53070a38aa75710ac087ad425b8a43ea0d7124fc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page