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.3.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.3-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gmo_fx-0.6.3.tar.gz
Algorithm Hash digest
SHA256 3e726cf13aaa36bc6512b5368d72fc638f4fd0bf76f118940a1be6f46ff8067d
MD5 18c5e9c850c4aecb9b68ce2286d2e238
BLAKE2b-256 ed316a110f2a98aadac1645fece2a6413d594d6c00b4df2e807e592a5a8e6ad6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmo_fx-0.6.3.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.6.3-py3-none-any.whl.

File metadata

  • Download URL: gmo_fx-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for gmo_fx-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27e857cc63d5ba7e032c971ded8f83b5e1b671fdb7ca131069321fe7389101c6
MD5 a6d906a26b3c503cf032092e361902ec
BLAKE2b-256 212a2b019e52c2d46fa5412cac0f01a0b74ae8ef6c57458a52066bd41750eb28

See more details on using hashes here.

Provenance

The following attestation bundles were made for gmo_fx-0.6.3-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