Skip to Content
파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지
book

파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지

by 이브 힐피시, 김도형
March 2022
Beginner to intermediate
796 pages
18h 14m
Korean
Hanbit Media, Inc.
Content preview from 파이썬을 활용한 금융 분석(2판) : 파이썬의 기초부터 금융공학, 머신러닝, 퀀트 분석, 매매 시스템 구현까지
565
14
장
FXCM 트레이딩 플랫폼
14.3
API
다루기
앞 절에서는
FXCM
서버에서 과거 틱 데이터를 받는 방법을 살펴봤다. 이 절에서는
API
를 사
용하여 과거 데이터를 받는 방법을 살펴보기로 한다. 먼저
FXCM
API
에 연결하는 연결 객체
가 필요하다.
fxcmpy
패키지를 임포트하고 (
API
토큰을 사용하여)
API
에 연결한다. 그다음
어떤 상품에 대한 데이터가 있는지 살펴본다.
In [27]: import fxcmpy
In [28]: fxcmpy.__version__
Out[28]: '1.1.33'
In [29]: api = fxcmpy.fxcmpy(config_file='../fxcm.cfg')
➊
In [30]: instruments = api.get_instruments()
In [31]: print(instruments)
['EUR/USD', 'XAU/USD', 'GBP/USD', 'UK100', 'USDOLLAR', 'XAG/USD', 'GER30',
'FRA40', 'USD/CNH', 'EUR/JPY', 'USD/JPY', 'CHN50', 'GBP/JPY', 'AUD/JPY',
'CHF/JPY', 'USD/CHF', 'GBP/CHF', 'AUD/USD', 'EUR/AUD', 'EUR/CHF',
'EUR/CAD', 'EUR/GBP', ...
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

머신러닝 파워드 애플리케이션: 아이디어에서부터 완성된 제품까지, 강력한 머신러닝 애플리케이션 구축 과정 배우기

머신러닝 파워드 애플리케이션: 아이디어에서부터 완성된 제품까지, 강력한 머신러닝 애플리케이션 구축 과정 배우기

박해선, 에마뉘엘 아메장

Publisher Resources

ISBN: 9791162245170