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 Distribution

gmo_fx-0.6.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

gmo_fx-0.6.0-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file gmo_fx-0.6.0.tar.gz.

File metadata

  • Download URL: gmo_fx-0.6.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for gmo_fx-0.6.0.tar.gz
Algorithm Hash digest
SHA256 f867670b0ac1799cdc2004c2868c17f128318861d4ed977e0b145d15c2cafa30
MD5 c7532f817f95d32ac9695e6f99b15f61
BLAKE2b-256 6c7e1a2a01fc8d53ad57d7207d9aa641760716d07da80639c2e9423e952aea72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gmo_fx-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 35.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for gmo_fx-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24a7a6c0ef8aaa468d69dda2a0dabc662ba535e16fe3a6cde1179a2eadd4477c
MD5 b25313de3d26a2372b81badce0c770f2
BLAKE2b-256 31ed0030e868827dbd7b5e437f879d3b766e3e9b4fb241ad8ad53dcd1cc0b733

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