🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

gmo-fx

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmo-fx

GMO社のFX API用Pythonライブラリ

0.6.3
Maintainers
1

gmo-fx-py

GMOが提供するFX用APIのSDKです。 GMOのAPIについてはこちらのリファレンスを参照してください。

インストール

pip install gmo-fx

使い方

各APIのエンドポイントの頭にgetをつけたメソッドを定義しています。 そのメソッドを実行することで、APIの呼び出しを行います。 ※例:「KLine情報の取得」APIの場合

from gmo_fx import KlinesApi, KlineInterval, Symbol
from datetime import datetime

response = KlinesApi()(
  symbol=Symbol.USD_JPY,
  price_type="BID",
  interval=KlineInterval.M1, # 1分足
  date=datetime.now(),
)
print(response.klines)

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts