Skip to Content
Python算法交易
book

Python算法交易

by Yves Hilpisch
November 2022
Intermediate to advanced
392 pages
10h 8m
Chinese
China Electric Power Press Ltd.
Content preview from Python算法交易
258
8
8-8:杠杆率为 20:1 EUR_USD 金融工具动量策略的表现(分钟柱线)
8.4
处理流式数据
Python
程序包
tpqoa
再次简化了流数据的处理。该软件包(与
v20
软件包结合使用)
处理了套接字通信细节,因此算法交易者只需关注如何处理流数据本身。
In [18]: instrument = 'EUR_USD'
In [19]: api.stream_data(instrument, stop=10)
2020-08-19T14:39:13.560138152Z 1.19131 1.1915
2020-08-19T14:39:14.088511060Z 1.19134 1.19152
2020-08-19T14:39:14.390081879Z 1.19124 1.19145
2020-08-19T14:39:15.105974700Z 1.19129 1.19144
2020-08-19T14:39:15.375370451Z 1.19128 1.19144
2020-08-19T14:39:15.501380756Z 1.1912 1.19141
2020-08-19T14:39:15.951793928Z 1.1912 1.19138
2020-08-19T14:39:16.354844135Z 1.19123 1.19138
2020-08-19T14:39:16.661440356Z ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python算法交易实战

Python算法交易实战

Posts & Telecom Press, Sebastien Donadio
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9787519869694