Skip to content

Bid Greater than Ask with ThetaData (DefaultOrderBook) #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
AlexCatarino opened this issue Mar 26, 2025 · 0 comments
Open
3 tasks done

Bid Greater than Ask with ThetaData (DefaultOrderBook) #15

AlexCatarino opened this issue Mar 26, 2025 · 0 comments

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

The ask price is always greater than the bid price.

Actual Behavior

20250326 16:42:00.480 TRACE:: Log: Strike: 571 Type: Call Bid: 1.08 > Ask: 1.06
Strike: 571 Type: Put Bid: 1.24 > Ask: 1.21
Strike: 572 Type: Put Bid: 1.8 > Ask: 1.78
Strike: 573 Type: Put Bid: 2.5 > Ask: 2.48
Strike: 575 Type: Put Bid: 4.25 > Ask: 4.24
Strike: 580 Type: Put Bid: 9.16 > Ask: 9.15

Potential Solution

Review DefaultOrderBook.

Reproducing the Problem

Run the following code: aad7ca with LEAN CLI and use ThetaData:

$ lean live deploy .\Spy0DteAtmVolTrader\ --image quantconnect/lean --brokerage "Interactive Brokers" --ib-user-name "" --ib-account "DU" --ib-password "____" --ib-enable-delayed-streaming-data no --data-provider-live "ThetaData" --thetadata-subscription-plan "Standard"

System Information

LEAN CLI on Windows.

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
    [x] I have provided detailed steps to reproduce the issue
@Martin-Molinero Martin-Molinero transferred this issue from QuantConnect/Lean Mar 26, 2025
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

No branches or pull requests

1 participant