| Crates.io | alpaca-fix |
| lib.rs | alpaca-fix |
| version | 0.3.1 |
| created_at | 2026-01-01 19:51:43.613774+00 |
| updated_at | 2026-01-02 07:33:42.871527+00 |
| description | FIX protocol client for Alpaca trading platform |
| homepage | https://github.com/joaquinbejar/alpaca-rs |
| repository | https://github.com/joaquinbejar/alpaca-rs |
| max_upload_size | |
| id | 2017372 |
| size | 155,919 |
FIX (Financial Information eXchange) protocol client for the Alpaca trading platform.
alpaca-fix provides a FIX protocol implementation for high-frequency trading applications with Alpaca. It supports FIX 4.2 and 4.4 versions for order routing and market data.
Add to your Cargo.toml:
[dependencies]
alpaca-fix = "0.3.1"
Run examples with cargo run -p alpaca-fix --example <name>:
| Example | Description |
|---|---|
fix_session_setup |
Configure and set up a FIX session |
fix_new_order_single |
Create New Order Single messages |
fix_order_cancel |
Create Cancel and Cancel/Replace messages |
fix_execution_report |
Execution Report message structure |
fix_market_data_request |
Market Data Request messages |
| Example | Description |
|---|---|
fix_connect |
Connect to FIX server |
fix_disconnect |
Graceful disconnect |
fix_market_order |
Send market order via FIX |
fix_limit_order |
Send limit order via FIX |
fix_cancel_order |
Cancel order via FIX |
fix_execution_reports |
Process execution reports |
fix_heartbeat |
Heartbeat handling |
fix_message_loop |
Receive and process messages |
# Session setup example
cargo run -p alpaca-fix --example fix_session_setup
# New Order Single example
cargo run -p alpaca-fix --example fix_new_order_single
Note: FIX protocol requires special access from Alpaca. Contact Alpaca support to enable FIX access for your account.
We welcome contributions to this project! If you would like to contribute, please follow these steps:
If you have any questions, issues, or would like to provide feedback, please feel free to contact the project maintainer:
We appreciate your interest and look forward to your contributions!
License: MIT
This software is not officially associated with Alpaca Markets. Trading financial instruments carries risk, and this library is provided as-is without any guarantees. Always test thoroughly with a paper trading account before using in a live trading environment.