fragrantauto-utils is a high-performance Python toolkit designed for automated cryptocurrency trading strategy development and portfolio management. It provides streamlined interfaces for executing complex order types and tracking real-time market data across multiple decentralized exchanges.
- Async Order Execution: Non-blocking API wrappers for rapid order routing and management, minimizing slippage during high-volatility events.
- Arbitrage Monitoring: Native utilities to track spread differentials between liquidity pools with sub-millisecond latency.
- Data Normalization: Robust serialization methods to convert diverse exchange websocket streams into a unified internal schema.
- Risk Guardrails: Pre-built validation logic to enforce circuit breakers, position sizing constraints, and automated emergency liquidations.
Requires Python 3.9 or higher. Install the package via pip:
pip install fragrantauto-utilsFor development mode with testing dependencies:
git clone https://github.com/developer/fragrantauto-utils.git
cd fragrantauto-utils
pip install -e .[dev]Initialize the client and execute a basic market buy order using the utility wrapper:
from fragrantauto import Client
# Initialize with API credentials
client = Client(api_key="your_key", secret="your_secret")
# Execute a market buy order for 0.5 ETH/USDT
order = client.trade.market_buy(
symbol="ETHUSDT",
quantity=0.5,
test_mode=True
)
print(f"Order executed successfully: {order['order_id']}")Disclaimer: This tool is for educational purposes. Use at your own risk. The author is not responsible for financial losses incurred through automated trading.