kyohah / kabustation_client-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kabustation-client

定義情報

REST APIのコード一覧、エンドポイントは下記リンク参照

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/kyohah/kabustation_client-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import kabustation_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import kabustation_client

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import kabustation_client
from kabustation_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:18080/kabusapi
# See configuration.py for a list of all supported configuration parameters.
configuration = kabustation_client.Configuration(
    host = "http://localhost:18080/kabusapi"
)



# Enter a context with an instance of the API client
with kabustation_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = kabustation_client.AuthApi(api_client)
    request_token = kabustation_client.RequestToken() # RequestToken | 

    try:
        # トークン発行
        api_response = api_instance.token_post(request_token)
        print("The response of AuthApi->token_post:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthApi->token_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:18080/kabusapi

Class Method HTTP request Description
AuthApi token_post POST /token トークン発行
InfoApi apisoftlimit_get GET /apisoftlimit ソフトリミット
InfoApi board_get GET /board/{symbol} 時価情報・板情報
InfoApi exchange_get GET /exchange/{symbol} 為替情報
InfoApi marginpremium_get GET /margin/marginpremium/{symbol} プレミアム料取得
InfoApi orders_get GET /orders 注文約定照会
InfoApi positions_get GET /positions 残高照会
InfoApi primary_exchange_get GET /primaryexchange/{symbol} 優先市場
InfoApi ranking_get GET /ranking 詳細ランキング
InfoApi regulations_get GET /regulations/{symbol} 規制情報
InfoApi symbol_get GET /symbol/{symbol} 銘柄情報
InfoApi symbolname_future_get GET /symbolname/future 先物銘柄コード取得
InfoApi symbolname_option_get GET /symbolname/option オプション銘柄コード取得
InfoApi symbolname_option_mini_get GET /symbolname/minioptionweekly ミニオプション(限週)銘柄コード取得
OrderApi cancelorder_put PUT /cancelorder 注文取消
OrderApi sendoder_future_post POST /sendorder/future 注文発注(先物)
OrderApi sendorder_option_post POST /sendorder/option 注文発注(オプション)
OrderApi sendorder_post POST /sendorder 注文発注(現物・信用)
RegisterApi register_put PUT /register 銘柄登録
RegisterApi unregister_all_put PUT /unregister/all 銘柄登録全解除
RegisterApi unregister_put PUT /unregister 銘柄登録解除
WalletApi wallet_cash_get GET /wallet/cash 取引余力(現物)
WalletApi wallet_cash_symbol_get GET /wallet/cash/{symbol} 取引余力(現物)(銘柄指定)
WalletApi wallet_future_get GET /wallet/future 取引余力(先物)
WalletApi wallet_future_symbol_get GET /wallet/future/{symbol} 取引余力(先物)(銘柄指定)
WalletApi wallet_margin_get GET /wallet/margin 取引余力(信用)
WalletApi wallet_margin_symbol_get GET /wallet/margin/{symbol} 取引余力(信用)(銘柄指定)
WalletApi wallet_option_get GET /wallet/option 取引余力(オプション)
WalletApi wallet_option_symbol_get GET /wallet/option/{symbol} 取引余力(オプション)(銘柄指定)

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

About


Languages

Language:Python 99.8%Language:Shell 0.2%