Closed ayurushev closed 5 years ago
Hi, thanks for reply
I've added two new functions in v. 0.3.3
$port->getAllCurrencies();
$port->getAllInstruments();
"Lots" is a amount lots of certain instruments, it may be not equal count for some stocks, f.g. RUSAL 1 lot = 10 stocks
Hi, thanks for reply
I've added two new functions in v. 0.3.3
$port->getAllCurrencies(); $port->getAllInstruments();
"Lots" is a amount lots of certain instruments, it may be not equal count for some stocks, f.g. RUSAL 1 lot = 10 stocks
Dear james and team, thanks for your great job! Short question, how can we list all instruments one by one? When I do $port->getAllInstruments() it returns everything but in a huge object with private properties, could you pleas kindly point me to the right answer?
Thanks.
Please consider sort of subscribe option for portfolio changes, of course it's not crucial
Добавляю в портфель сбер
$client->sbPositionBalance(2, 'BBG004730N88')
получаю портфель
$port = $client->getPortfolio();
и вижу в нем сбер print_r($port) [instruments:jamesRUS52\TinkoffInvest\TIPortfolio:private] => Array
но массив instruments является private, вывести его весь я не могу. В TIPortfolio только 2 public функции: getCurrencyBalance и getInstrumentLots($ticker), которая выдает лоты(?) только при указании тикера. А полного списка, получается, получить нельзя на данный момент для отображения. Или я чего-то не догоняю:)