kabu Station® API-I made a Python wrapper for REST API

Overview

In the following kabu station API article, I converted from dictionary format to json format, created requests, and reconverted response from json format to dictionary type every time, but I created a module to simplify this.

-Use kabu Station® API from Python

-Receive Websocket of kabu station ® API in Python

environment

How to use

You need to install requests.

pip install requests

Download or clone from the following.

It can be used immediately with the interpreter of the terminal started in the folder where kabusapi is located.

PS C:\Users\Shirasu> python
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import kabusapi
>>> api = kabusapi.Context('localhost', '18080', 'password') 
>>> api.wallet.cash()                                       
{'StockAccountWallet': 123456.7}
>>>

For other usage, refer to sample.py in the sample folder of the same Git.

Recommended Posts

kabu Station® API-I made a Python wrapper for REST API
kabu Station® API --Updated Python wrapper for PUSH API
I made a Python wrapper library for docomo image recognition API.
Created a Python wrapper for the Qiita API
I made a Python Qiita API wrapper "qiipy"
Use kabu Station® API from Python
A story about adding a REST API to a daemon made with Python
Implemented Python wrapper for Qiita API v2
A textbook for beginners made by Python beginners
Receive websocket of kabu station ® API in Python
Procedure for creating a LineBot made with Python
Touch the sample v20-python-samples of the OANDA v20 REST API wrapper library for Python
I made a VM that runs OpenCV for Python
[Python] I made a classifier for irises [Machine learning]
Library "apywrapper" to easily develop a wrapper for RESTful API
[VSCode] I made a user snippet for Python print f-string
Qiita API Python wrapper for batch processing to grab Qiita posts
I made a python text
Made a command for FizzBuzz
I made a Chatbot using LINE Messaging API and Python
Python> I made a test code for my own external file
I made a lot of files for RDP connection with Python
I made a scaffolding tool for the Python web framework Bottle
[Python] I wrote a REST API using AWS API Gateway and Lambda.
I made a Chatbot using LINE Messaging API and Python (2) ~ Server ~
I made a Line-bot using Python!
I made a fortune with Python.
Quickly implement REST API in Python
I made a daemon with Python
I made a Docker container to use JUMAN ++, KNP, python (for pyKNP).
REST API of model made with Python with Watson Machine Learning (CP4D edition)
Google Cloud Vision API sample for python
I made a dash docset for Holoviews
I made a payroll program in Python!
Simple Slack API client made with Python
I made a character counter with Python
Let's create a virtual environment for Python
[Python] REST API essential, convenient library summary
[Mac] Building a virtual environment for Python
Make Qt for Python app a desktop app
Get a token for conoha in python
A tool for easily entering Python code
I made a Hex map with Python
Serverless face recognition API made with Python
After studying Python3, I made a Slackbot
I made a roguelike game with Python
Building a Python development environment for AI development
I made a simple blackjack with Python
I made a configuration file with Python
I made a library for actuarial science
I made a neuron simulator with Python