| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A Python client library for the Arkham Exchange API, providing both REST and WebSocket interfaces for trading cryptocurrency and managing your account.
Install the SDK using pip:
pip install arkham-sdk-pythonfrom arkham_sdk_python.client import Arkham
# Initialize the client with your API credentials
client = Arkham(
api_key="your_api_key",
api_secret="your_api_secret"
)
# Get trading pairs
pairs = client.get_pairs()
print(f"Available pairs: {pairs}")
# Get order book for a specific pair
orderbook = client.get_orderbook("BTC-USD")
print(f"Order book: {orderbook}")
# Place a limit order
order = client.place_order(
pair="BTC-USD",
side="buy",
order_type="limit",
amount="0.001",
price="50000"
)
print(f"Order placed: {order}")from arkham_sdk_python.ws_client import ArkhamWebSocket
from arkham_sdk_python.models import WebsocketTradesUpdate
def handle_trade_update(update: WebsocketTradesUpdate):
print(f"Trade update: {update}")
# Initialize WebSocket client
ws = ArkhamWebSocket(
api_key="your_api_key",
api_secret="your_api_secret"
)
# Connect and subscribe to trades
ws.connect()
ws.subscribe_trades("BTC-USD", handle_trade_update)
# Keep the connection alive
try:
ws.wait()
except KeyboardInterrupt:
ws.close()The SDK requires API credentials to access private endpoints:
You can obtain these credentials from your Arkham Exchange account dashboard.
For more detailed usage examples, see the examples/ directory:
These examples demonstrate:
This SDK is automatically generated from the Arkham Exchange API specification. The majority of the code is generated automatically to ensure consistency with the API.
For suggestions, bug reports, or feature requests, please:
We welcome feedback and will work to address issues promptly!
This project is licensed under the MIT License - see the LICENSE.md file for details.
For technical support or questions:
Note: This SDK is in active development. Please check the releases page for the latest updates and changelog.
| Back | FazBrowse Home | New Git URL |