Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 567 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 567 Bytes

py-quik

Tiny framework for sending orders to QUIK and monitor their status.

import pyquik as pq


quik = pq.Quik(input_file="shared-files/input.tri",
               output_file="shared-files/output.tro")

order = pq.Order(
    action='NEW_ORDER',
    account="NL0011100043",
    seccode="SBER",
    classcode="QJSIM",
    quantity=1,
    type="M",
    operation='S',
    price=0,
    clientcode="client_code")

order_id = quik.register(order)

input('Press INTER to get order info.')

order_info = quik.get_order_info(order_id)

print(order_info)