trading sdk for alphasec orderbook dex
Project description
Alphasec Python SDK
A trading SDK for the Alphasec orderbook DEX.
🔗 Links
🚀 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alphasec_py-0.1.1.tar.gz.
File metadata
- Download URL: alphasec_py-0.1.1.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebc40091d89cdb72285bd73efd34e151e3821fda079043661a93424a7f6980a1
|
|
| MD5 |
21fb1b35664ee3f774970707b4e16e4b
|
|
| BLAKE2b-256 |
fe2a91f421b86623981a2cc09ee5c2a29916500f0853e79453e3846e3b803157
|
File details
Details for the file alphasec_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: alphasec_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 52.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
655a6db46e8138fca28d3fbc59181c3e7a94e9893e80ae9b11b403a6fbb14cae
|
|
| MD5 |
752db6522649fef728108c21754cffc3
|
|
| BLAKE2b-256 |
4a0060354f10f18343702a75ad311a31925e67401dcad7a41ddbe15587a7d3d6
|