Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf475657cf | |||
| 90a15ceddb | |||
| 981ce0d62f | |||
| 154b679464 |
@@ -61,4 +61,6 @@ jobs:
|
||||
file: ./docker/Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.extract-version.outputs.tags }}
|
||||
build-args: |
|
||||
VERSION=${{ github.ref_name }}
|
||||
|
||||
|
||||
@@ -153,6 +153,7 @@ class Portfolio extends Model
|
||||
$total_performance = [];
|
||||
|
||||
// get unique currencies for holdings
|
||||
$currency_rates = [];
|
||||
foreach ($holdings->groupBy('market_data.currency')->keys() as $currency) {
|
||||
$currency_rates[$currency] = CurrencyRate::timeSeriesRates($currency, $holdings->min('first_transaction_date'), now());
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
"openai-php/client": "^0.10.3",
|
||||
"predis/predis": "^2.2",
|
||||
"robsontenorio/mary": "^1.35",
|
||||
"scheb/yahoo-finance-api": "^4.11",
|
||||
"scheb/yahoo-finance-api": "^5.0",
|
||||
"staudenmeir/eloquent-has-many-deep": "^1.20",
|
||||
"tschucki/alphavantage-laravel": "^0.0"
|
||||
},
|
||||
|
||||
Generated
+13
-11
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "42c893f20ccd0482c1c5a18aa3790acc",
|
||||
"content-hash": "13310769a8c74dcffeb66fc87ab4e371",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
@@ -6104,28 +6104,30 @@
|
||||
},
|
||||
{
|
||||
"name": "scheb/yahoo-finance-api",
|
||||
"version": "v4.12.0",
|
||||
"version": "v5.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/scheb/yahoo-finance-api.git",
|
||||
"reference": "08f47997d123389567e2c7fa7cafc94d4c4e2515"
|
||||
"reference": "72561695bdccfb6318c985cf439254f646c3b127"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/scheb/yahoo-finance-api/zipball/08f47997d123389567e2c7fa7cafc94d4c4e2515",
|
||||
"reference": "08f47997d123389567e2c7fa7cafc94d4c4e2515",
|
||||
"url": "https://api.github.com/repos/scheb/yahoo-finance-api/zipball/72561695bdccfb6318c985cf439254f646c3b127",
|
||||
"reference": "72561695bdccfb6318c985cf439254f646c3b127",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"guzzlehttp/guzzle": "^6.0|^7.0",
|
||||
"php": ">=7.1.3"
|
||||
"guzzlehttp/guzzle": "^7",
|
||||
"php": ">=8.1",
|
||||
"psr/cache": "^2|^3"
|
||||
},
|
||||
"require-dev": {
|
||||
"escapestudios/symfony2-coding-standard": "^3.9",
|
||||
"phpunit/phpunit": "^7.5 || ^8 || ^9",
|
||||
"phpunit/phpunit": "^10.5|^11|^12",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"vimeo/psalm": "^3.11|^4.0"
|
||||
"symfony/cache": "^6|^7",
|
||||
"vimeo/psalm": "^6.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
@@ -6153,9 +6155,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/scheb/yahoo-finance-api/issues",
|
||||
"source": "https://github.com/scheb/yahoo-finance-api/tree/v4.12.0"
|
||||
"source": "https://github.com/scheb/yahoo-finance-api/tree/v5.0.0"
|
||||
},
|
||||
"time": "2025-03-27T15:44:16+00:00"
|
||||
"time": "2025-07-05T20:58:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "spatie/laravel-package-tools",
|
||||
|
||||
@@ -44,6 +44,9 @@ FROM php:8.3-fpm-alpine
|
||||
# Set the working directory
|
||||
WORKDIR /var/app
|
||||
|
||||
ARG VERSION=dev
|
||||
ENV VERSION=$VERSION
|
||||
|
||||
# Copy necessary files from the builder stage
|
||||
COPY --from=builder /var/app /var/app
|
||||
COPY --from=builder /usr/local/etc/php/conf.d /usr/local/etc/php/conf.d
|
||||
|
||||
@@ -4,6 +4,7 @@ cd /var/app
|
||||
|
||||
# Starting Investbrain
|
||||
echo "CuKWhOKWliAgICAgICAg4paXIOKWjCAgICAg4paYICAK4paQIOKWm+KWjOKWjOKWjOKWiOKWjOKWm+KWmOKWnOKWmOKWm+KWjOKWm+KWmOKWgOKWjOKWjOKWm+KWjArilp/ilpbilozilozilprilpjilpnilpbiloTilozilpDilpbilpnilozilowg4paI4paM4paM4paM4paMCg==" | base64 -d
|
||||
printf "%15s$VERSION\n"
|
||||
|
||||
echo -e "\n====================== Validating environment... ====================== "
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ new class extends Component
|
||||
$transaction->transaction_type == 'BUY'
|
||||
? $transaction->cost_basis
|
||||
: $transaction->sale_price,
|
||||
$transaction->market_data->currency
|
||||
$transaction->market_data?->currency
|
||||
) }})
|
||||
|
||||
<x-loading x-show="loading" x-cloak class="text-gray-400 ml-2" />
|
||||
|
||||
Reference in New Issue
Block a user