RAPTOR v18.4: Исправлена отчетность, активированы выходные
This commit is contained in:
20
invest-python-master/examples/instruments/get_dfa_by.py
Normal file
20
invest-python-master/examples/instruments/get_dfa_by.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import os
|
||||
|
||||
from t_tech.invest import Client, InstrumentIdType, InstrumentRequest
|
||||
|
||||
TOKEN = os.environ["INVEST_TOKEN"]
|
||||
|
||||
|
||||
def main():
|
||||
with Client(TOKEN) as client:
|
||||
dfa = client.instruments.dfa_by(
|
||||
request=InstrumentRequest(
|
||||
id_type=InstrumentIdType.INSTRUMENT_ID_TYPE_POSITION_UID,
|
||||
id="ce604b33-70c7-4609-9f42-075dbd9fe278",
|
||||
)
|
||||
)
|
||||
print(dfa)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user