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