Skip to Content
Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング
book

Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング

by Yves Hilpisch, 村上 振一郎
April 2022
Intermediate to advanced
368 pages
6h 20m
Japanese
O'Reilly Japan, Inc.
Content preview from Pythonからはじめるアルゴリズムトレード ―自動売買の基礎と機械学習の本格導入に向けたPythonプログラミング

7章リアルタイムデータとソケットを扱う

宇宙の秘密を知りたければ、エネルギー、周波数、振動の観点から考えなさい。

—ニコラ・テスラ

トレードアイディアの開発とバックテストは、かなり非同期的であり重要ではないプロセスであり、複数のステップが繰り返されたり、繰り返されなかったりします。その間、資本が危険に晒されることはなく、最も重要な要件はパフォーマンスとスピードではありません。トレード戦略を展開するためにマーケットに目を向けると、そのルールは大きく変わります。データはリアルタイムで大量に届くため、データのリアルタイム処理と、ストリーミングデータに基づいたリアルタイムの意思決定が必要になります。この章では、リアルタイムデータを用いた処理について説明します。リアルタイムデータに対しては、技術的なツールとしてソケットを使用することが一般的です。その中で、中心となる専門用語について少しご紹介します。

ネットワークソケット
コンピュータネットワークにおける接続のエンドポイントで、単にソケットとも呼ばれる。
ソケットアドレス
インターネットプロトコル(IP)アドレスとポート番号の組み合わせ。
ソケットプロトコル
TCP(Transfer Control Protocol)のように、ソケット通信を定義して処理するプロトコル。
ソケットペア
相互に通信するローカルソケットとリモートソケットの組み合わせ。
ソケットAPI
ソケットとその通信を制御するためのアプリケーション・プログラミング・インターフェース。

この章では、軽量、高速、かつスケーラブルなソケットプログラミングライブラリとして、ZeroMQ(https://zeromq.org)の使い方を中心に説明します。ZeroMQは複数のプラットフォームで利用可能で、最も人気のあるプログラミング言語のラッパーが用意されています。ZeroMQはソケット通信のためのさまざまなパターンをサポートしています。それらのパターンの1つはいわゆる ...

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ではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎

Pythonではじめる機械学習 ―scikit-learnで学ぶ特徴量エンジニアリングと機械学習の基礎

Andreas C. Muller, Sarah Guido, 中田 秀基
スクラム実践者が知るべき97のこと

スクラム実践者が知るべき97のこと

Gunther Verheyen, 吉羽 龍太郎, 原田 騎郎, 永瀬 美穂
初めてのGraphQL ―Webサービスを作って学ぶ新世代API

初めてのGraphQL ―Webサービスを作って学ぶ新世代API

Eve Porcello, Alex Banks, 尾崎 沙耶, あんどうやすし

Publisher Resources

ISBN: 9784873119793Other