mirror of
https://github.com/we-promise/sure.git
synced 2026-06-01 00:39:01 +00:00
Merge branch 'main' into feat/savings-goals
Signed-off-by: Guillem Arias Fauste <accounts@gariasf.com>
This commit is contained in:
7
test/fixtures/brex_accounts.yml
vendored
Normal file
7
test/fixtures/brex_accounts.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
checking_account:
|
||||
brex_item: one
|
||||
account_id: "cash_acc_checking_1"
|
||||
account_kind: cash
|
||||
name: "Brex Checking"
|
||||
currency: USD
|
||||
current_balance: 10000.00
|
||||
7
test/fixtures/brex_items.yml
vendored
Normal file
7
test/fixtures/brex_items.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
one:
|
||||
family: dylan_family
|
||||
|
||||
name: "Test Brex Connection"
|
||||
token: "test_brex_token_123"
|
||||
base_url: "https://api-staging.brex.com"
|
||||
status: good
|
||||
45
test/fixtures/files/ibkr/flex_statement.xml
vendored
Normal file
45
test/fixtures/files/ibkr/flex_statement.xml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<FlexQueryResponse queryName="Sure Test" type="AF">
|
||||
<FlexStatements count="2">
|
||||
<FlexStatement accountId="U1234567" fromDate="2025-05-08" toDate="2026-05-08" whenGenerated="2026-05-08;12:00:00">
|
||||
<AccountInformation accountId="U1234567" currency="CHF" />
|
||||
<ChangeInPositionValues>
|
||||
<ChangeInPositionValue accountId="U1234567" currency="BASE_SUMMARY" endOfPeriodValue="2350.50" />
|
||||
</ChangeInPositionValues>
|
||||
<CashReport>
|
||||
<CashReportCurrency currency="BASE_SUMMARY" endingCash="1000.50" />
|
||||
<CashReportCurrency currency="CHF" endingCash="1000.50" />
|
||||
<CashReportCurrency currency="USD" endingCash="500.00" />
|
||||
</CashReport>
|
||||
<EquitySummaryInBase>
|
||||
<EquitySummaryByReportDateInBase currency="CHF" reportDate="2026-05-07" cash="900.50" stock="2300.50" total="3201.00" />
|
||||
<EquitySummaryByReportDateInBase currency="CHF" reportDate="2026-05-08" cash="1000.50" stock="2350.50" total="3351.00" />
|
||||
</EquitySummaryInBase>
|
||||
<OpenPositions>
|
||||
<OpenPosition assetCategory="STK" conid="265598" securityID="US0378331005" securityIDType="ISIN" symbol="AAPL" position="10" markPrice="150.00" currency="USD" fxRateToBase="0.90" costBasisPrice="125.50" reportDate="2026-05-08" side="Long" />
|
||||
</OpenPositions>
|
||||
<Trades>
|
||||
<Trade assetCategory="STK" tradeID="1001" transactionID="1001a" conid="265598" symbol="AAPL" quantity="2" tradePrice="140.00" currency="USD" fxRateToBase="0.90" buySell="BUY" tradeDate="2026-05-01" ibCommission="-1.25" ibCommissionCurrency="USD" />
|
||||
<Trade assetCategory="STK" tradeID="1002" transactionID="1002a" conid="265598" symbol="AAPL" quantity="-1" tradePrice="155.00" currency="USD" fxRateToBase="0.92" buySell="SELL" tradeDate="2026-05-05" ibCommission="-1.10" ibCommissionCurrency="USD" />
|
||||
</Trades>
|
||||
<CashTransactions>
|
||||
<CashTransaction transactionID="4001" type="Deposits/Withdrawals" amount="500.00" currency="CHF" fxRateToBase="1" reportDate="2026-05-03" />
|
||||
<CashTransaction transactionID="4002" type="Dividends" amount="2.50" currency="USD" fxRateToBase="0.91" reportDate="2026-05-04" conid="265598" />
|
||||
</CashTransactions>
|
||||
</FlexStatement>
|
||||
<FlexStatement accountId="U7654321" fromDate="2025-05-08" toDate="2026-05-08" whenGenerated="2026-05-08;12:00:00">
|
||||
<AccountInformation accountId="U7654321" currency="USD" />
|
||||
<ChangeInPositionValues>
|
||||
<ChangeInPositionValue accountId="U7654321" currency="BASE_SUMMARY" endOfPeriodValue="0.00" />
|
||||
</ChangeInPositionValues>
|
||||
<CashReport>
|
||||
<CashReportCurrency currency="BASE_SUMMARY" endingCash="250.00" />
|
||||
</CashReport>
|
||||
<EquitySummaryInBase>
|
||||
<EquitySummaryByReportDateInBase currency="USD" reportDate="2026-05-08" cash="250.00" stock="0.00" total="250.00" />
|
||||
</EquitySummaryInBase>
|
||||
<OpenPositions />
|
||||
<Trades />
|
||||
<CashTransactions />
|
||||
</FlexStatement>
|
||||
</FlexStatements>
|
||||
</FlexQueryResponse>
|
||||
27
test/fixtures/ibkr_accounts.yml
vendored
Normal file
27
test/fixtures/ibkr_accounts.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
main_account:
|
||||
ibkr_item: configured_item
|
||||
name: Main IBKR
|
||||
ibkr_account_id: U1234567
|
||||
currency: CHF
|
||||
current_balance: 3351.0
|
||||
cash_balance: 1000.5
|
||||
institution_metadata:
|
||||
provider_name: Interactive Brokers
|
||||
raw_holdings_payload: []
|
||||
raw_activities_payload: {}
|
||||
raw_cash_report_payload: []
|
||||
report_date: 2026-05-08
|
||||
|
||||
secondary_account:
|
||||
ibkr_item: configured_item
|
||||
name: Retirement IBKR
|
||||
ibkr_account_id: U7654321
|
||||
currency: USD
|
||||
current_balance: 250
|
||||
cash_balance: 250
|
||||
institution_metadata:
|
||||
provider_name: Interactive Brokers
|
||||
raw_holdings_payload: []
|
||||
raw_activities_payload: {}
|
||||
raw_cash_report_payload: []
|
||||
report_date: 2026-05-08
|
||||
15
test/fixtures/ibkr_items.yml
vendored
Normal file
15
test/fixtures/ibkr_items.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
configured_item:
|
||||
family: dylan_family
|
||||
name: Interactive Brokers
|
||||
status: good
|
||||
query_id: QUERY123
|
||||
token: TOKEN123
|
||||
pending_account_setup: true
|
||||
|
||||
empty_item:
|
||||
family: empty
|
||||
name: Interactive Brokers
|
||||
status: good
|
||||
query_id: QUERYEMPTY
|
||||
token: TOKENEMPTY
|
||||
pending_account_setup: false
|
||||
8
test/fixtures/kraken_accounts.yml
vendored
Normal file
8
test/fixtures/kraken_accounts.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
one:
|
||||
kraken_item: one
|
||||
name: Kraken
|
||||
account_id: combined
|
||||
account_type: combined
|
||||
currency: USD
|
||||
current_balance: 1234.50
|
||||
extra: {}
|
||||
20
test/fixtures/kraken_items.yml
vendored
Normal file
20
test/fixtures/kraken_items.yml
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
one:
|
||||
family: dylan_family
|
||||
name: My Kraken
|
||||
api_key: test_kraken_key_123
|
||||
api_secret: test_kraken_secret_456
|
||||
last_nonce: 0
|
||||
status: good
|
||||
institution_name: Kraken
|
||||
institution_domain: kraken.com
|
||||
institution_url: https://www.kraken.com
|
||||
institution_color: "#5841D8"
|
||||
|
||||
requires_update:
|
||||
family: dylan_family
|
||||
name: Stale Kraken
|
||||
api_key: old_kraken_key
|
||||
api_secret: old_kraken_secret
|
||||
last_nonce: 0
|
||||
status: requires_update
|
||||
institution_name: Kraken
|
||||
Reference in New Issue
Block a user