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 get_klines, KlineInterval, Symbol
from datetime import datetime

response = get_klines(
  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.1.1.tar.gz (10.9 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.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gmo_fx-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for gmo_fx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 552f484bf52fdff24bd538f8cfbef9380f6ad1840fcce4954dcf51931ce7b1b4
MD5 da8f6cc9ee2c55962de3366d1852f0b8
BLAKE2b-256 7bdf5f765c802a4a0f6d8aa92a1f7226d89513f62979d771c4b1364c1a798588

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gmo_fx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41b204e428835ee43df56460ef75cbe4892cd9189d00f09ce2d3999943b41e6b
MD5 1120db912c61b95017f8d82956e8aa20
BLAKE2b-256 2bf3b0dc8faa22e2b30989a9e155e6dd9082d607df9e0ba1584de53f2cde120c

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