Skip to content

Conversation

@DanielGMorena
Copy link

Summary

This PR introduces a two-step integration to allow retrieving historical market data directly from a local Interactive Brokers TWS (Trader Workstation) instance, as an alternative to third-party APIs like Databento or Polygon, which may incur costs.


Key Features

1. Local API Wrapper for IBKR

2. Custom Host and Port Configuration

  • Added support for users to specify a custom host and port for API integration.
  • This allows seamless connection to the local IBKR wrapper.

3. Timezone Handling Fixes

  • IBKR exports times in America/New_York (Eastern) by default.

  • Adjusted the IBKR import logic to:

    • Parse dates in Eastern time.
    • Convert to the user's local timezone via timeZoneTrade.
    • Ensures consistency across the app (e.g., charting, zooming, and trade timestamps).

Notes

  • Local TWS must be running and API access enabled.
  • Tested with real trade and market data for alignment.

Screenshots

image image

El Even added 30 commits April 20, 2024 12:00
* candlesticks:
  minor css changes : using arrow and added tooltip
  Added OHLC "memory" so gets only if symbol and date does not already exist.
  Repairs after merging branches
  no message
  Modified the look of chart markers
  refactored
  removed console.log
  Modified zoom to find nearest point
  Changed ohlcDates to store milliseconds
  Zoom and marks work with swing
  Fixed chart not showing after close
  Changed charts markers to triangles
  Displayed error for charts
  Added markers for entries and exits.
  Implemented zooming
  Refactored
  getOHLC updates, based on selectedTrade + removed passive events module
  candlesticks for testing
  WIP
  working on candlestick charts in daily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants