RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
122
invest-python-master/docs/examples.md
Normal file
122
invest-python-master/docs/examples.md
Normal file
@@ -0,0 +1,122 @@
|
||||
Больше примеров доступно [здесь](https://github.com/RussianInvestments/invest-python/tree/main/examples).
|
||||
|
||||
## Получение и вывод в консоль свечей с часовым интервалом за год
|
||||
[examples/all_candles.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/all_candles.py)
|
||||
~~~python
|
||||
{% include "../examples/all_candles.py" %}
|
||||
~~~
|
||||
## Асинхронная функция получения и вывода в консоль свечей с часовым интервалом за год
|
||||
[examples/async_all_candles.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/async_all_candles.py)
|
||||
~~~python
|
||||
{% include "../examples/async_all_candles.py" %}
|
||||
~~~
|
||||
## Асинхронная функция получения и вывода счетов пользователя
|
||||
[examples/async_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/async_client.py)
|
||||
~~~python
|
||||
{% include "../examples/async_client.py" %}
|
||||
~~~
|
||||
## Асинхронная функция получения и вывода минутных свечей
|
||||
[examples/async_retrying_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/async_retrying_client.py)
|
||||
~~~python
|
||||
{% include "../examples/async_retrying_client.py" %}
|
||||
~~~
|
||||
## Подписка на стрим котировок по минутным свечам и вывод получаемых свечей в консоль
|
||||
[examples/async_stream_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/async_stream_client.py)
|
||||
~~~python
|
||||
{% include "../examples/async_stream_client.py" %}
|
||||
~~~
|
||||
## Отмена всех выставленных поручений
|
||||
[examples/cancel_orders.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/cancel_orders.py)
|
||||
~~~python
|
||||
{% include "../examples/cancel_orders.py" %}
|
||||
~~~
|
||||
## Функция получения и вывода счетов клиента
|
||||
[examples/client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/client.py)
|
||||
~~~python
|
||||
{% include "../examples/client.py" %}
|
||||
~~~
|
||||
## Загрузка и вывод всех минутных свечей по интрументу
|
||||
[examples/download_all_candles.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/download_all_candles.py)
|
||||
~~~python
|
||||
{% include "../examples/download_all_candles.py" %}
|
||||
~~~
|
||||
## Асинхронная подписка на стрим минутных свечей
|
||||
[examples/easy_async_stream_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/easy_async_stream_client.py)
|
||||
~~~python
|
||||
{% include "../examples/easy_async_stream_client.py" %}
|
||||
~~~
|
||||
## Простая подписка на стрим минутных свечей
|
||||
[examples/easy_stream_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/easy_stream_client.py)
|
||||
~~~python
|
||||
{% include "../examples/easy_stream_client.py" %}
|
||||
~~~
|
||||
## Получение списка операций и их постраничный вывод
|
||||
[examples/get_operations_by_cursor.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/get_operations_by_cursor.py)
|
||||
~~~python
|
||||
{% include "../examples/get_operations_by_cursor.py" %}
|
||||
~~~
|
||||
## Функция кэширования инструментов
|
||||
[examples/instrument_cache.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/instrument_cache.py)
|
||||
~~~python
|
||||
{% include "../examples/instrument_cache.py" %}
|
||||
~~~
|
||||
## Функция получения списка инструментов подходящих под строку query
|
||||
[examples/instruments/instruments.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/instruments/instruments.py)
|
||||
~~~python
|
||||
{% include "../examples/instruments/instruments.py" %}
|
||||
~~~
|
||||
## Функция логгирования ошибок
|
||||
[examples/logger.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/logger.py)
|
||||
~~~python
|
||||
{% include "../examples/logger.py" %}
|
||||
~~~
|
||||
## Подписка на стрим портфолио и вывод информации
|
||||
[examples/porfolio_stream_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/porfolio_stream_client.py)
|
||||
~~~python
|
||||
{% include "../examples/porfolio_stream_client.py" %}
|
||||
~~~
|
||||
## Подписка на стрим позиций и вывод информации
|
||||
[examples/positions_stream.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/positions_stream.py)
|
||||
~~~python
|
||||
{% include "../examples/positions_stream.py" %}
|
||||
~~~
|
||||
## Функция получения и вывода минутных свечей
|
||||
[examples/retrying_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/retrying_client.py)
|
||||
~~~python
|
||||
{% include "../examples/retrying_client.py" %}
|
||||
~~~
|
||||
## Получение и вывод информации об аккаунте пользователя в песочнице
|
||||
[examples/sandbox_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/sandbox_client.py)
|
||||
~~~python
|
||||
{% include "../examples/sandbox_client.py" %}
|
||||
~~~
|
||||
## Подписка на стрим минутных свечей и их вывод
|
||||
[examples/stream_client.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/stream_client.py)
|
||||
~~~python
|
||||
{% include "../examples/stream_client.py" %}
|
||||
~~~
|
||||
## Создание тэйк-профит стоп ордера
|
||||
[examples/wiseplat_create_take_profit_stop_order.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/wiseplat_create_take_profit_stop_order.py)
|
||||
~~~python
|
||||
{% include "../examples/wiseplat_create_take_profit_stop_order.py" %}
|
||||
~~~
|
||||
## Отмена всех выставленных стоп ордеров
|
||||
[examples/wiseplat_cancel_all_stop_orders.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/wiseplat_cancel_all_stop_orders.py)
|
||||
~~~python
|
||||
{% include "../examples/wiseplat_cancel_all_stop_orders.py" %}
|
||||
~~~
|
||||
## Получение figi для тикера
|
||||
[examples/wiseplat_get_figi_for_ticker.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/wiseplat_get_figi_for_ticker.py)
|
||||
~~~python
|
||||
{% include "../examples/wiseplat_get_figi_for_ticker.py" %}
|
||||
~~~
|
||||
## Получение / установка баланса для песочницы. Получение / закрытие всех песочниц. Создание новой песочницы.
|
||||
[examples/wiseplat_set_get_sandbox_balance.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/wiseplat_set_get_sandbox_balance.py)
|
||||
~~~python
|
||||
{% include "../examples/wiseplat_set_get_sandbox_balance.py" %}
|
||||
~~~
|
||||
## Пример live стратегии для нескольких тикеров. Вывод OHLCV для каждой сформировавшейся свечи.
|
||||
[examples/wiseplat_live_strategy_print_ohlcv.py](https://github.com/RussianInvestments/invest-python/blob/main/examples/wiseplat_live_strategy_print_ohlcv.py)
|
||||
~~~python
|
||||
{% include "../examples/wiseplat_live_strategy_print_ohlcv.py" %}
|
||||
~~~
|
||||
Reference in New Issue
Block a user