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.4.0.tar.gz
(20.2 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.4.0-py3-none-any.whl
(32.0 kB
view details)
File details
Details for the file gmo_fx-0.4.0.tar.gz.
File metadata
- Download URL: gmo_fx-0.4.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fd6ac1ede7214a2a8d5a69a73ce7877db75370d81e4e264df99df35cb429670
|
|
| MD5 |
308e12a45d40abcc4b601205ce519f1b
|
|
| BLAKE2b-256 |
e8c2a047748a3d18176f59a8eabc0a9e11cbdb8233ce011feb23b93cf59c7b7b
|
File details
Details for the file gmo_fx-0.4.0-py3-none-any.whl.
File metadata
- Download URL: gmo_fx-0.4.0-py3-none-any.whl
- Upload date:
- Size: 32.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aba0044b0ab71b524b8a55546168433028e2251a960a14980f9a6f129ca69db7
|
|
| MD5 |
df262b3d652f3c1d055015e7f88fe406
|
|
| BLAKE2b-256 |
0675363df5a4d4ceb905d6584308dfb5ffc5c3fcd1a42dc3f34ea8acce92b585
|