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.1.tar.gz (3.9 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liberal_alpha-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 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.1.tar.gz
Algorithm Hash digest
SHA256 bffc23dd1e824cf535a488de02eb2e5f31c909f989e1d9a185d2b2ccec551dd8
MD5 da162d16480331eb8078630628bd2fdf
BLAKE2b-256 0a92f5b4efab714fa0d0faebfd52b99de913efcab4ec591301e9e194af43ff59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liberal_alpha-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcd7604426cbfd902d0cabf8c160dcff0c9066bf281aed7aba027f8754d49022
MD5 d40f84af9fc569202c4219977dcb4ad4
BLAKE2b-256 fc474d56b1c9e67ee356c5c97b5087f9b1c662c0a4f893904881c2e9c3c4190f

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