Skip to content

Conversation

@AlexCatarino
Copy link
Member

Description

Only use trade data (Tick with TickTrade type or TradeBar) to get the closing price, since MOC is filled with the closing price.

  • Fix unit tests to show that the new implementation only fills with trade data from the current open market.
  • Change regression tests to reflect the bug fix. All other changes are the consequence of using TradeBar instead of QuoteBar.

Related Issue

Ref.: #4567

How Has This Been Tested?

Unit and regression tests.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor (non-breaking change which improves implementation)
  • Performance (non-breaking change which improves performance. Please add associated performance test and results)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Non-functional change (xml comments/documentation/etc)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My branch follows the naming convention bug-<issue#>-<description> or feature-<issue#>-<description>

@AlexCatarino AlexCatarino force-pushed the bug-4567-equity-fill-model-moc branch from 576fd4c to f5bde2b Compare September 18, 2021 00:27
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! awesome test suite

Only use trade data (`Tick` with `TickTrade` type or `TradeBar`) to get the closing price, since MOC is filled with the closing price.

- Fix unit tests to show that the new implementation only fills with trade data from the current open market.
- Change regression tests to reflect the bug fix. All other changes are the consequence of using `TradeBar` instead of `QuoteBar`.
Fixes the logic with tick data: looking for the OfficalClose or ClosingPrints only apply if data from the extended market hours is included.
Adds additional logic to handle missing trade data.
-Refactors timeout logic to address peer-review and adds it to MOO fill too.
- Adds unit tests
@AlexCatarino AlexCatarino force-pushed the bug-4567-equity-fill-model-moc branch from f5bde2b to 42becde Compare September 21, 2021 20:07
@Martin-Molinero Martin-Molinero merged commit 9ca57c2 into master Sep 21, 2021
@Martin-Molinero Martin-Molinero deleted the bug-4567-equity-fill-model-moc branch September 21, 2021 20:51
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