Skip to content

Commit

Permalink
Fix: Rolled transactions now do not multiply quantity * leg_quantity …
Browse files Browse the repository at this point in the history
…to be consistent with how IBKR handles it.
  • Loading branch information
PaulSquires committed Aug 29, 2023
1 parent c8df6bd commit f6ab944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IB-Tracker/src/Config/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SOFTWARE.

#pragma once

constexpr std::wstring version = L"2.4.0";
constexpr std::wstring version = L"2.4.1";

bool SaveConfig();
bool LoadConfig();
Expand Down
2 changes: 1 addition & 1 deletion IB-Tracker/src/TradeDialog/TradeDialogSave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ void TradeDialog_CreateOptionsTradeData(HWND hwnd)
leg->PutCall = guiData.legsRoll.at(row).PutCall;
leg->action = guiData.legsRoll.at(row).action;
leg->trans = trans;
int intQuantity = guiData.legsRoll.at(row).origQuantity * trans->quantity;
int intQuantity = guiData.legsRoll.at(row).origQuantity;
if (intQuantity == 0) continue;

std::wstring wszExpiryDate = AfxRemoveDateHyphens(leg->expiryDate);
Expand Down

0 comments on commit f6ab944

Please sign in to comment.