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

🚀 Quick Start

Install (Not yet deployed)

pip install alphasec

Configure (required for examples)

cd examples
cp config/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.0.tar.gz (39.3 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.0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: alphasec_py-0.1.0.tar.gz
  • Upload date:
  • Size: 39.3 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.0.tar.gz
Algorithm Hash digest
SHA256 28a1ea3d349561b88271bfbbc758dbadc5c0fb49015ae16cee49187e94dea0dc
MD5 8fae88b8226c92f363ea8bc303747731
BLAKE2b-256 6a622bb2c59db660f033e5f9ef459f73b76752b4150a7f0503f922f24feb4698

See more details on using hashes here.

File details

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

File metadata

  • Download URL: alphasec_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 096ba116be5dbbe498b2cd78938fe5683512929c22b49f73e6ac45e4eb5ac70e
MD5 9e00bd28f6947ce66e93ca0bd5162e71
BLAKE2b-256 8ceb2097e385698d8b31a9547d7e5ae1544ac31ece39c584a0689b33773bb9b7

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