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.8.2.tar.gz (24.6 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.8.2-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gmo_fx-0.8.2.tar.gz
Algorithm Hash digest
SHA256 cfc452682ca0bfa98d886c46c44715526d283e15890c905d2669e706eba18ec1
MD5 bc81579dfa91c7121615c11c67956bd2
BLAKE2b-256 2174d2398457722c8f46ff390f618d6c125b5dcb38a7c3131b501209475dbdad

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for gmo_fx-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b0854847827a0c7a76e8fbd81d2b3a9f7fcc1bd39bbabecb8640ae088ea5a14
MD5 e06d21a3ad616153192d326817684b86
BLAKE2b-256 18474cb16c2ecba4a5b5ac5b302bda6b6224142335d9415f970a1dbeb25880d5

See more details on using hashes here.

Provenance

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