RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
20
invest-python-master/examples/get_last_trades.py
Normal file
20
invest-python-master/examples/get_last_trades.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
|
||||
from t_tech.invest import Client
|
||||
from t_tech.invest.schemas import TradeSourceType
|
||||
|
||||
TOKEN = os.environ["INVEST_TOKEN"]
|
||||
|
||||
|
||||
def main():
|
||||
with Client(TOKEN) as client:
|
||||
print(
|
||||
client.market_data.get_last_trades(
|
||||
instrument_id="BBG004730ZJ9",
|
||||
trade_source=TradeSourceType.TRADE_SOURCE_EXCHANGE,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user