Cryptocurrency trading platform with Blockly-based strategy builder
Go to file
rob 45395c86c5 Implement fee fetching from exchange via ccxt
Exchange.py:
- Add get_trading_fees(symbol) - fetches fees from market data
  - Tries user-specific fees for authenticated users (fetch_trading_fees)
  - Falls back to market data (public)
  - Returns maker/taker rates with source indicator
- Add get_margin_info(symbol) - returns margin trading availability

ExchangeInterface.py:
- Add get_trading_fees() - routes to appropriate exchange
- Add get_margin_info() - routes to appropriate exchange
- Both methods handle user/exchange lookup with fallback to defaults

trade.py:
- Update new_trade() to fetch actual fees from exchange
- Uses taker fee for market orders, maker fee for limit orders
- Falls back to exchange_fees defaults if fetch fails

Fees now come from actual exchange data (0.1% for Binance spot)
instead of hardcoded defaults.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-02 16:30:19 -04:00
.github/workflows Implement execution loop, paper persistence, and CI pipeline 2026-02-28 19:48:50 -04:00
UML Updated project structure and staged modified files 2024-07-25 08:21:15 -03:00
__pycache__ Updated project structure and staged modified files 2024-07-25 08:21:15 -03:00
archived_code The test are running but not without errors. 2024-11-11 17:22:06 -04:00
config Moved .db and .yml files to appropriate directories 2024-07-25 08:46:12 -03:00
markdown The test seem to run without errors but are still process blocking. 2024-11-15 18:08:32 -04:00
src Implement fee fetching from exchange via ccxt 2026-03-02 16:30:19 -04:00
tests Fix paper trade P/L updates and fee calculations 2026-03-02 16:05:53 -04:00
.claudeignore Fix chart loading and stabilize local runtime 2026-02-28 15:15:56 -04:00
.gitignore Fix int64 JSON serialization error in SocketIO responses 2026-03-01 17:58:24 -04:00
CLAUDE.md Live trading infrastructure functional on testnet 2026-03-01 15:23:34 -04:00
pytest.ini Live trading infrastructure functional on testnet 2026-03-01 15:23:34 -04:00
requirements.txt Upgrade ccxt from 4.4.8 to 4.5.40 2026-03-02 16:19:08 -04:00
test_live_manual.py Live trading infrastructure functional on testnet 2026-03-01 15:23:34 -04:00