Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortfolioStream не работает стрим портфеля #15

Open
kuzkin85 opened this issue Jan 26, 2024 · 1 comment
Open

Comments

@kuzkin85
Copy link

kuzkin85 commented Jan 26, 2024

public async Task GetPortfolioAsync()
{
PortfolioStreamRequest psr = new PortfolioStreamRequest();
psr.Accounts.Add(_accountsID);
PortfolioResponse portfolio = new PortfolioResponse();
await foreach (PortfolioStreamResponse portfolioStream in _client.OperationsStream.PortfolioStream(psr).ResponseStream.ReadAllAsync())
{
portfolio = portfolioStream.Portfolio;
};
return portfolio;
}

Пытаюсь подписаться на стрим портфеля, но приходит только так... {{ "subscriptions": { "accounts": [ { "accountId": "1111111111", "subscriptionStatus": "PORTFOLIO_SUBSCRIPTION_STATUS_SUCCESS" } ] } }} , и больше ничего.

@sashamsuper
Copy link

Как я понимаю ничего не поменялось? Пинги у меня возвращает,
{ "ping": { "time": "2024-05-26T12:37:24.699869972Z" } }
{ "ping": { "time": "2024-05-26T12:37:24.699895795Z" } }
{ "ping": { "time": "2024-05-26T12:37:24.699909428Z" } }
{ "ping": { "time": "2024-05-26T12:37:24.699917404Z" } }. Но по счетам ничего. Как вариант что то очень нужное с этой переменной PayloadOneofCase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants