QuantConnect / Lean.Brokerages.TDAmeritrade

TD Ameritrade Brokerage Plugin
14 stars 9 forks source link

#3 Some Fixes and Features #5

Closed Romazes closed 1 year ago

Romazes commented 1 year ago

Description

Feature
  1. Added [Explicit] attribute in tests, because we need setup config. TDA doesn't have public endpoint.
  2. Created independent file to test HistoryProvider brokerage.
  3. Cleared code in main brokerage test file (TDAmeritradeBrokerageTests.cs).
  4. Lock object in PlaceOrder to sync threads.
    Fix
  5. Price fildes for MarketStop and StopLimit orderType.
  6. assing response in Execute method
  7. Update order: After we updated order in Lean then we have removed order from cached collection.
  8. CancelOrder() method
  9. GetOpenOrders(). Also, open orders add to inner cache collection to get response from websocket

Related Issue

N/A

Motivation and Context

TDA implementation.

Requires Documentation Change

N/A

How Has This Been Tested?

Run test locally use your config.

Types of changes

Checklist: