Skip to main content

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

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmo_fx-0.2.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file gmo_fx-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: gmo_fx-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for gmo_fx-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9cd535fb78529142b34265e4130f31a8cdccd252f8ec4906127ba16c3eb3131
MD5 19fdbeb69928dc23d9b97bd9e1c83857
BLAKE2b-256 a8450813af096d174f62f9dfc9593c8f285d90655018335de556d0ec52bf6f8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page