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.15.0.tar.gz (34.3 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.15.0-py3-none-any.whl (75.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gmo_fx-0.15.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gmo_fx-0.15.0.tar.gz
Algorithm Hash digest
SHA256 626f207e309a487781327b6399a5e1805f197e7de2624454e35968c166a6580b
MD5 0630717b25bbae8e6577441743b224e5
BLAKE2b-256 f5f7c61941055eeb9556cbda2e155c2cf62f1775984349eff317b316650348cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmo_fx-0.15.0.tar.gz:

Publisher: publish_pypi.yaml on RikitoNoto/gmo-fx-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: gmo_fx-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 75.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gmo_fx-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 281ac5932d4621158ccfc0527c501173b0306795e8b2cb9724ec9656ea4c71d2
MD5 60b6a92f551007d5adc79eaaadb91dd5
BLAKE2b-256 dc62b37835521b3e33415f6e0ad3cee244c52f6f13936327b3bef285efc7a23e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmo_fx-0.15.0-py3-none-any.whl:

Publisher: publish_pypi.yaml on RikitoNoto/gmo-fx-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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