1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! # Bitfinex Exchange Connector
//!
//! Full implementation of Bitfinex API v2 connector.
//!
//! ## Structure
//!
//! - `endpoints` - URLs and endpoint enum
//! - `auth` - Request signing (HMAC-SHA384)
//! - `parser` - JSON array parsing
//! - `connector` - BitfinexConnector + trait implementations
//!
//! ## Usage
//!
//! ```ignore
//! use connectors_v5::exchanges::bitfinex::BitfinexConnector;
//!
//! let connector = BitfinexConnector::new(credentials, false).await?;
//!
//! // Core methods (from traits)
//! let price = connector.get_price(symbol, AccountType::Spot).await?;
//! let order = connector.market_order(symbol, side, qty, AccountType::Spot).await?;
//! ```
//!
//! ## Key Differences from Other Exchanges
//!
//! 1. **Array-based responses**: All data returned as arrays, not objects
//! 2. **HMAC-SHA384**: Uses SHA384 instead of SHA256
//! 3. **Microsecond nonces**: Nonces in microseconds, not milliseconds
//! 4. **Symbol prefixes**: `t` for trading pairs, `f` for funding
//! 5. **Signed amounts**: Positive=buy, negative=sell for orders/positions
pub use ;
pub use BitfinexAuth;
pub use BitfinexParser;
pub use BitfinexConnector;
pub use BitfinexWebSocket;