codex/broker-operations-ui #18

Merged
ksv741 merged 22 commits from codex/broker-operations-ui into main 2026-06-18 06:34:55 +03:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 6b3bdd2aec - Show all commits

View File

@ -32,6 +32,7 @@ export default registerAs('app', () => ({
tbankAccountsTtl: parseInt(process.env.CACHE_TBANK_ACCOUNTS_TTL || '3600', 10),
tbankPortfolioTtl: parseInt(process.env.CACHE_TBANK_PORTFOLIO_TTL || '60', 10),
tbankOperationsTtl: parseInt(process.env.CACHE_TBANK_OPERATIONS_TTL || '300', 10),
tbankPositionsTtl: parseInt(process.env.CACHE_TBANK_POSITIONS_TTL || '60', 10),
tbankInstrumentTtl: parseInt(process.env.CACHE_TBANK_INSTRUMENT_TTL || '86400', 10),
},
auth: {

View File

@ -75,7 +75,7 @@ export class BrokerPortfolioService {
const result = await this.cacheService.getOrFetch(
TBANK_CACHE_KEYS.positions,
[accountId],
[accountId, cursor ?? '', String(limit)],
async () => {
const operationsClient = this.tbankClient.getServiceClient('OperationsService') as any;
const portfolio = await this.tbankClient.callUnary<