semvec/pypi-packages huggingface dataset:
mojito2 0.1.6
python wrapper for korea broker's REST API services
Requires Python: >=3.6

# 모히토 (Mojito)

대한민국 증권사의 Rest API 기반의 Open API에 대한 통합 파이썬 레퍼 모듈입니다. 
통합 모듈이라 칵테일 이름인 모히토를 프로젝트명으로 사용하고 있으며, 돈 벌어서 몰디브가서 모히토 한 잔 하자는 의미도 있습니다. 

![mojito-g60be5b0d7_640](https://user-images.githubusercontent.com/23475470/161363305-93b48dfa-76d0-4ecd-b703-4d7529323dc9.jpg)

# 설치 

```
$ pip install mojito2
```

# 지원 API 

| 카테고리 | 기능 | 함수 |
|--------|-----|-----|
| OAuth 인증 | Hasheky | `issue_hashkey()` |
| OAuth 인증 | 접근토근발급(P) | `issue_access_token()` |
| OAuth 인증 | 접근토근폐기(P) | 미지원 |
| 국내주식주문 | 주식주문(현금) |  |
| 국내주식주문 | 주식잔고조회 | `fetch_balance()` |

# 사용법
## 한국투자증권

https://wikidocs.net/book/7845  

현재가 조회

```
import mojito
import pprint

key = "발급받은 API KEY"
secret = "발급받은 API SECRET"
acc_no = "12345678-01"

broker = mojito.KoreaInvestment(api_key=key, api_secret=secret, acc_no=acc_no)
resp = broker.fetch_price("005930")
pprint.pprint(resp)

```

일봉 데이터 조회 

```
import mojito
import pprint

key = "발급받은 API KEY"
secret = "발급받은 API SECRET"
acc_no = "12345678-01"

broker = mojito.KoreaInvestment(api_key=key, api_secret=secret, acc_no=acc_no)
resp = broker.fetch_daily_price("005930")
pprint.pprint(resp)
```

잔고 조회 

```
resp = broker.fetch_balance()
pprint.pprint(resp)
```

주문 

```
resp = broker.create_market_buy_order("005930", 10) # 삼성전자, 10주, 시장가
pprint.pprint(resp)
```

```
{'rt_cd': '0',
 'msg_cd': 'APBK0013',
 'msg1': '주문 전송 완료 되었습니다.',
 'output': {'KRX_FWDG_ORD_ORGNO': '91252',
  'ODNO': '0000117057',
  'ORD_TMD': '121052'}}
```

주문 취소

```
resp = broker.cancel_order("91252", "0000117057", "00", 60000, 5, "Y") # KRX_FWDG_ORD_ORGNO, ODNO, 지정가 주문, 가격, 수량, 모두 
print(resp)
```

미국주식 주문

```
broker = KoreaInvestment(key, secret, acc_no=acc_no, exchange="NASD")
resp = broker.create_limit_buy_order("TQQQ", 35, 1)
print(resp)
```

웹소켓
```
import pprint
import mojito

with open("../../koreainvestment.key", encoding="utf-8") as f:
    lines = f.readlines()
key = lines[0].strip()
secret = lines[1].strip()


if __name__ == "__main__":
    broker_ws = mojito.KoreaInvestmentWS(key, secret, ["H0STCNT0", "H0STASP0"], ["005930", "000660"], user_id="idjhh82")
    broker_ws.start()
    while True:
        data_ = broker_ws.get()
        if data_[0] == '체결':
            print(data_[1])
        elif data_[0] == '호가':
            print(data_[1])
        elif data_[0] == '체잔':
            print(data_[1])
```
mosyle 0.0.7
Mosyle Manager Python API
Requires Python: >=3.7
Keywords: python,api,apple,mdm,mosyle

# Mosyle Manager Python API

![Python Badge](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=fff&style=flat)
[![PyPI version](https://badge.fury.io/py/mosyle.svg)](https://badge.fury.io/py/mosyle)
![PyPI - Downloads](https://img.shields.io/pypi/dm/mosyle?style=flat)
![Lines of code](https://img.shields.io/tokei/lines/github/SchoolOfTheOsage/mosyle?style=flat)
[![GitHub](https://img.shields.io/github/license/SchoolOfTheOsage/mosyle?style=flat)](license.md)
[![start with why](https://img.shields.io/badge/start%20with-why%3F-brightgreen.svg?style=flat)](https://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action)
![hits](https://hits.deltapapa.io/github/schooloftheosage/mosyle.svg)

## Why?

## What?

## How?

## Installation

`pip install mosyle`

## To Do

[Project](https://github.com/orgs/SchoolOfTheOsage/projects/2/views/1)

## Resources

- [Mosyle](https://school.mosyle.com)
- [Mosyle Official API Documentation Mirror](docs/official/readme.md)
- [setup.py (for humans)](https://github.com/navdeep-G/setup.py)
- [A Sample Python Project](https://github.com/pypa/sampleproject)
- [How to Publish a Python Package from GitHub Actions](https://www.seanh.cc/2022/05/21/publishing-python-packages-from-github-actions/)
- [Markdown Guide](https://www.markdownguide.org)
- [Repo Badges](https://github.com/dwyl/repo-badges)
- [Todo Tree](https://github.com/Gruntfuggly/todo-tree#readme)
- [Understanding setup.py, setup.cfg, and pyproject.toml in Python](https://ianhopkinson.org.uk/2022/02/understanding-setup-py-setup-cfg-and-pyproject-toml-in-python/)

## Authors
<!--- https://opensource.google/documentation/reference/releasing/authors --->

This is the list of **Mosyle Python API**'s significant contributors.

This does not necessarily list everyone who has contributed code, especially since many employees of one corporation may be contributing. To see the full list of contributors, see the revision history in source control.

- [Nathan McGuire](https://github.com/nathanmcguire) @ [School of the Osage](https://osageschools.org/)
hashequal 1.0.2
A tool for quasi-interactive math sheets
Requires Python: >=3.6

# hashequal
a Python tool for quasi-interactive math sheets, aiming to provide Mathcad-like experience  
on execution it modifies the calling script annotating the results of the operations marked with #= 

## example

before running

~~~python
#! /usr/bin/env python

import hashequal

a = 1 + 1 #=
b = a * 2 #=  # comment
~~~

after running

~~~python
#! /usr/bin/env python

import hashequal  # run 2018-11-06 18:59:54 UTC

a = 1 + 1 #= 2
b = a * 2 #= 4  # comment
~~~

## instructions

- `import hashequal` at the beginning of the file, eventually just below the interpreter directive
- mark every operation whose result is to be annotated with an `#=` comment
- if there need to be further comments on an `#=` line, use another following `#`

## known issues

- does not handle implicit line continuations