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.3.0.tar.gz
(17.5 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.3.0-py3-none-any.whl
(27.8 kB
view details)
File details
Details for the file gmo_fx-0.3.0.tar.gz.
File metadata
- Download URL: gmo_fx-0.3.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6f0264aa81347fd3a1677342bec3bf57db361950893f068738a7f97f0b8eb0
|
|
| MD5 |
2cb0e0a66ee3e18bbdabc26afdd4d198
|
|
| BLAKE2b-256 |
81fb3719ec9f645717b469a174abd96c79e8ba2c1bba9c4eead2c65fff097134
|
File details
Details for the file gmo_fx-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gmo_fx-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f15596386392fe3941f1079bedd636552cc0fe615a823ab61a09c1ed8c2524a1
|
|
| MD5 |
f3abe310033e9a3d1310230b6429af25
|
|
| BLAKE2b-256 |
ac8128bb728afce275a2b78e9006252decb354d54c7f919674c695d1283f6aeb
|