7.4. Khởi tạo OrderBook để thao tác với các hàm đặt lệnh
Mô tả cách sử dụng thư viện sau khi người dùng đã đăng nhập. Chi tiết được nêu ra ở cuối chương này.
7.4.1. Orderbook cho thị trường cơ sở
username_dnse = 'REPLACE_WITH_YOUR_DNSE_USERNAME'
password_dnse = 'REPLACE_WITH_YOUR_DNSE_PASSWORD'
client_order = client.FiinQuantConnector(
broker='DNSE',
username=username_dnse,
password=password_dnse,
smart_otp=True
).login()
orderbook = client_order.get_orderbook(account_id='0001009212', loan_id='13720')7.4.2. Orderbook cho thị trường phái sinh
username_dnse = 'REPLACE_WITH_YOUR_DNSE_USERNAME'
password_dnse = 'REPLACE_WITH_YOUR_DNSE_PASSWORD'
client_order = client.FiinQuantConnector(
broker='DNSE',
username=username_dnse,
password=password_dnse,
smart_otp=True
).login()
orderbook_der = client_order.get_derivative_orderbook(
account_id='0001009212',
loan_id='2278'
)Tham số
Kiểu dữ liệu
Bắt buộc
Mô tả
Last updated