Compare commits
6 Commits
447eb9ef4f
...
f5d693ac66
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5d693ac66 | ||
|
|
116216560f | ||
|
|
e4bc793452 | ||
|
|
fd3282881b | ||
|
|
b5457ce05c | ||
|
|
1479bcad3d |
@ -1,4 +1,42 @@
|
|||||||
{
|
{
|
||||||
|
"profiles": {
|
||||||
|
"http": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"applicationUrl": "http://localhost:5050"
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Production",
|
||||||
|
"ConnectionStrings__Default": "server=43.167.226.216;Database=assetmanager;Uid=AssetManager;Pwd=2XpcnYGTpB5BhJyG;CharSet=utf8mb4;",
|
||||||
|
"Jwt__SecretKey": "your-strong-secret-key-here-change-in-production",
|
||||||
|
"Jwt__Issuer": "AssetManager",
|
||||||
|
"Jwt__Audience": "AssetManager",
|
||||||
|
"Wechat__AppId": "wx245f0f3ebcfcf5a7",
|
||||||
|
"Wechat__AppSecret": "809c740129bc8b434177ce12ef292dd0",
|
||||||
|
"Tiingo__ApiKey": "bd00fee76d3012b047473078904001b33322cb46",
|
||||||
|
"TZ": "Asia/Shanghai"
|
||||||
|
},
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"applicationUrl": "https://localhost:7040;http://localhost:5050"
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"launchUrl": "swagger",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
"iisSettings": {
|
"iisSettings": {
|
||||||
"windowsAuthentication": false,
|
"windowsAuthentication": false,
|
||||||
@ -7,50 +45,5 @@
|
|||||||
"applicationUrl": "http://localhost:31733",
|
"applicationUrl": "http://localhost:31733",
|
||||||
"sslPort": 44342
|
"sslPort": 44342
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"profiles": {
|
|
||||||
"http": {
|
|
||||||
"commandName": "Project",
|
|
||||||
"dotnetRunMessages": true,
|
|
||||||
"launchBrowser": true,
|
|
||||||
"launchUrl": "swagger",
|
|
||||||
"applicationUrl": "http://localhost:5050",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
||||||
"ConnectionStrings__Default": "server=localhost;database=assetmanager;user=root;password=你的数据库密码;",
|
|
||||||
"Jwt__SecretKey": "你的JWT密钥至少16位",
|
|
||||||
"Jwt__Issuer": "AssetManager",
|
|
||||||
"Jwt__Audience": "AssetManager",
|
|
||||||
"Tiingo__ApiKey": "你的TiingoAPI密钥"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"https": {
|
|
||||||
"commandName": "Project",
|
|
||||||
"dotnetRunMessages": true,
|
|
||||||
"launchBrowser": true,
|
|
||||||
"launchUrl": "swagger",
|
|
||||||
"applicationUrl": "https://localhost:7040;http://localhost:5050",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
||||||
"ConnectionStrings__Default": "server=localhost;database=assetmanager;user=root;password=你的数据库密码;",
|
|
||||||
"Jwt__SecretKey": "你的JWT密钥至少16位",
|
|
||||||
"Jwt__Issuer": "AssetManager",
|
|
||||||
"Jwt__Audience": "AssetManager",
|
|
||||||
"Tiingo__ApiKey": "你的TiingoAPI密钥"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"IIS Express": {
|
|
||||||
"commandName": "IISExpress",
|
|
||||||
"launchBrowser": true,
|
|
||||||
"launchUrl": "swagger",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
||||||
"ConnectionStrings__Default": "server=localhost;database=assetmanager;user=root;password=你的数据库密码;",
|
|
||||||
"Jwt__SecretKey": "你的JWT密钥至少16位",
|
|
||||||
"Jwt__Issuer": "AssetManager",
|
|
||||||
"Jwt__Audience": "AssetManager",
|
|
||||||
"Tiingo__ApiKey": "你的TiingoAPI密钥"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -349,7 +349,7 @@ public class MarketDataService : IMarketDataService
|
|||||||
Symbol = symbol.ToUpper(),
|
Symbol = symbol.ToUpper(),
|
||||||
AssetType = assetType.ToUpper(),
|
AssetType = assetType.ToUpper(),
|
||||||
Price = Math.Round(response.Price, 8),
|
Price = Math.Round(response.Price, 8),
|
||||||
PreviousClose = response.PreviousClose > 0 ? Math.Round(response.PreviousClose.Value, 8) : null,
|
PreviousClose = response.PreviousClose > 0 ? Math.Round(response.PreviousClose, 8) : null,
|
||||||
Source = source,
|
Source = source,
|
||||||
FetchedAt = DateTime.Now,
|
FetchedAt = DateTime.Now,
|
||||||
ExpiredAt = GetCacheExpirationTime(assetType)
|
ExpiredAt = GetCacheExpirationTime(assetType)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user