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.2.4.tar.gz
(16.4 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.2.4-py3-none-any.whl
(25.2 kB
view details)
File details
Details for the file gmo_fx-0.2.4.tar.gz.
File metadata
- Download URL: gmo_fx-0.2.4.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a3f19e66918a8880e5e29387fb83528718294f43f3cf307c741457d653a078
|
|
| MD5 |
87d51efc706434f056596111cac704a2
|
|
| BLAKE2b-256 |
c345dba38717599bf8b6803f7afa9885e5673b521ebd602e92f69feea7098a03
|
File details
Details for the file gmo_fx-0.2.4-py3-none-any.whl.
File metadata
- Download URL: gmo_fx-0.2.4-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8895aecac8e8982b4fc47dc6ccdaf1d4698b8392204efcfe1cf40bc0d9f6f213
|
|
| MD5 |
06204cef91f7990319c9c2ea3252bda5
|
|
| BLAKE2b-256 |
11fd1acd54ae8da89c39f6a14d2f1c6caeb5ae1ee74c0cbcfd770268fcc2b18f
|