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
Release history Release notifications | RSS feed
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.2.tar.gz
(22.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gmo_fx-0.6.2-py3-none-any.whl
(36.0 kB
view details)
File details
Details for the file gmo_fx-0.6.2.tar.gz.
File metadata
- Download URL: gmo_fx-0.6.2.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e99103afd7e0c5d8327cb821c00d97ac4c64c1244fcdab94a7daf2d79b144c
|
|
| MD5 |
0bc167abbe91b67eb6cbdf143c148b86
|
|
| BLAKE2b-256 |
e5a2390e39df70619ab29daff865b1d15e723e7ae4f4feaa73055d8d4a2bc91d
|
File details
Details for the file gmo_fx-0.6.2-py3-none-any.whl.
File metadata
- Download URL: gmo_fx-0.6.2-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aa2ca161d0a76a99b5ebdb78b9d462e4bc2ee4763720d5a107732cd504a013d
|
|
| MD5 |
e169d0907a2adb4406212d8b3adce58b
|
|
| BLAKE2b-256 |
281e419f1e40670281a45b9a6657aec7143b2616a83c6d6fada09ab438709cca
|