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.0.tar.gz (2.0 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.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: liberal_alpha-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 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.0.tar.gz
Algorithm Hash digest
SHA256 065a7cc0c200ef5750289d393d46d3092dad130c83ee5dd641a50ad45cf5d7f3
MD5 04425bc8dab1b3358cb4fdfd556cf88c
BLAKE2b-256 951c96898a78cf0f771f689cc363e6d7779d33f25e85bbcee0abdccfd55cbb06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liberal_alpha-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9554d84f2a6c673a103810737b817ad2a5c11f7c19ec186d5bfe023842dcbe2b
MD5 6298f25bf9bd14afdc63bc8a40e00b6a
BLAKE2b-256 51a879d814c7aa7ff5502072d163cdba0a5f280d66865e0ba0abf2412ad06e4f

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