Browse Source
Bugfix/fix historical market data gathering for asset profiles with manual data source (#3336)
* Fix historical market data gathering for asset profiles with MANUAL data source
* Update changelog
pull/3338/head
Thomas Kaul
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
9 additions and
2 deletions
-
CHANGELOG.md
-
apps/api/src/app/import/import.service.ts
-
apps/api/src/app/order/order.service.ts
-
apps/api/src/services/data-provider/manual/manual.service.ts
|
@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
### Fixed |
|
|
### Fixed |
|
|
|
|
|
|
|
|
- Fixed the form submit in the asset profile details dialog of the admin control due to the `url` validation |
|
|
- Fixed the form submit in the asset profile details dialog of the admin control due to the `url` validation |
|
|
|
|
|
- Fixed the historical market data gathering for asset profiles with `MANUAL` data source |
|
|
|
|
|
|
|
|
## 2.76.0 - 2024-04-23 |
|
|
## 2.76.0 - 2024-04-23 |
|
|
|
|
|
|
|
|
|
@ -416,6 +416,11 @@ export class ImportService { |
|
|
User: { connect: { id: user.id } }, |
|
|
User: { connect: { id: user.id } }, |
|
|
userId: user.id |
|
|
userId: user.id |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (order.SymbolProfile?.symbol) { |
|
|
|
|
|
// Update symbol that may have been assigned in createOrder()
|
|
|
|
|
|
assetProfile.symbol = order.SymbolProfile.symbol; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const value = new Big(quantity).mul(unitPrice).toNumber(); |
|
|
const value = new Big(quantity).mul(unitPrice).toNumber(); |
|
|
|
@ -140,7 +140,8 @@ export class OrderService { |
|
|
return { id }; |
|
|
return { id }; |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
include: { SymbolProfile: true } |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (updateAccountBalance === true) { |
|
|
if (updateAccountBalance === true) { |
|
|
|
@ -91,7 +91,7 @@ export class ManualService implements DataProviderInterface { |
|
|
headers = {}, |
|
|
headers = {}, |
|
|
selector, |
|
|
selector, |
|
|
url |
|
|
url |
|
|
} = symbolProfile.scraperConfiguration ?? {}; |
|
|
} = symbolProfile?.scraperConfiguration ?? {}; |
|
|
|
|
|
|
|
|
if (defaultMarketPrice) { |
|
|
if (defaultMarketPrice) { |
|
|
const historical: { |
|
|
const historical: { |
|
|