Skip to content
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

Order Serialization Order Value Multiplier #8447

Open
4 tasks done
AlexCatarino opened this issue Dec 5, 2024 · 1 comment
Open
4 tasks done

Order Serialization Order Value Multiplier #8447

AlexCatarino opened this issue Dec 5, 2024 · 1 comment
Labels

Comments

@AlexCatarino
Copy link
Member

Expected Behavior

The "value" field has the value from Order.GetValue method.

Actual Behavior

The multiplier is not taken into account for option:

Time,Symbol,Price,Quantity,Type,Status,Value,Tag
2021-01-08T20:30:00Z,SPXW 210115C03870000,9.1,-5,Market,Filled,-45.5,"CreateIronCondor: Short Call Order placed with strike 3870 at the current SPX of 3816.93."

"orders": {
    "1": {
        ...
        "symbol": {
            "value": "SPXW  210115C03870000",
            "id": "SPXW XL80P536WOB2|SPX 31",
            "permtick": "SPXW  210115C03870000",
            "underlying": {
                "value": "SPX",
                "id": "SPX 31",
                "permtick": "SPX"
            }
        },
        "price": 9.1,
        ...
        "quantity": -5.0,
        ...
        "value": -45.5,

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
  • I have provided detailed steps to reproduce the issue
@Martin-Molinero
Copy link
Member

The order Value property is currently deprecated because of this issue, please use Order.GetValue(security) or security.Holdings.HoldingsValue. We could potentially serialize it instead of Value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants