Skip to main content

trading sdk for alphasec orderbook dex

Project description

Alphasec Python SDK

A trading SDK for the Alphasec orderbook DEX.

PyPI version License: MIT

🔗 Links

🚀 Quick Start

Install

pip install alphasec-py

Installed as alphasec-py, imported as alphasec.

Configure (required for examples)

cd examples
cp config.json.example config/config.json
# Then edit config.json and fill your values

Minimal config.json

{
  "network": "kairos",
  "api_url": "https://api.alphasec.trade",
  "l1_address": "0x...your_L1_address",
  "l1_wallet": "0x...your_L1_private_key",
  "l2_wallet": "0x...your_L2_private_key",
  "session_enabled": false
}

Run an example

python examples/market_data/basic_tickers.py

🌐 Network Information

Kairos Testnet

  • API URL: https://api-testnet.alphasec.trade
  • Websocket URL: wss://api-testnet.alphasec.trade/ws
  • Network: kairos
  • L1 Chain ID: 1001 (Kaia Kairos)
  • L2 Chain ID: 41001 (AlphaSec L2)

Mainnet

  • API URL: https://api.alphasec.trade
  • Websocket URL: wss://api.alphasec.trade/ws
  • Network: mainnet
  • L1 Chain ID: 8217 (Kaia Mainnet)
  • L2 Chain ID: 48217 (AlphaSec L2)

🔐 Security

⚠️ Important Security Notes:

  • Never commit private keys to version control
  • Use environment variables or secure key management
  • Always test on kairos testnet before mainnet
  • Verify transaction details before signing
  • Blockchain transactions are irreversible

⚠️ Disclaimer

This SDK is provided as-is. Trading cryptocurrencies involves substantial risk and may result in significant losses. Always do your own research and never invest more than you can afford to lose. The developers are not responsible for any trading losses incurred while using this SDK.

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

alphasec_py-0.1.2.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

alphasec_py-0.1.2-py3-none-any.whl (52.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alphasec_py-0.1.2.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for alphasec_py-0.1.2.tar.gz
Algorithm Hash digest
SHA256 adfc4d1d54f09cd7851c1b250dd358e01cd66dcc6a27d79e256a65e934a34d96
MD5 91a5fb7cf044723b5fd3272eb3773d97
BLAKE2b-256 eb8fb769e3370d452ff90c81ad4ab372dd4184c2fa89467abf0a25737dee932c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphasec_py-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 52.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for alphasec_py-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 29bb04604df0b4c9588a437b629110187c446647fe2041b61a5a9d58fb1bb217
MD5 6990c276b830987ab2e4e40fad58f701
BLAKE2b-256 3325754cf800497370162745e5d07dadc71837ad5244e59afb57adf5fe177e11

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