일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- math
- list
- GIT
- hive
- Google Excel
- Mac
- Redshift
- numpy
- PostgreSQL
- c#
- PANDAS
- Python
- matplotlib
- Github
- string
- Kotlin
- dataframe
- PySpark
- Google Spreadsheet
- gas
- Excel
- Tkinter
- django
- google apps script
- Java
- 파이썬
- array
- SQL
- Apache
- Today
- Total
목록Python/Python ETC (56)
달나라 노트
Syntax get_order(ticker_or_uuid='KRW-ETH', state='wait', limit=100) get_order method는 나의 주문 내역을 return해줍니다. ticker_or_uuid = 주문을 조회할 ticker 또는 uuid state = 현재 상태 (생략가능) limit = 출력할 주문의 최대 개수 (생략 가능) import pyupbit as ub access_key = 'access_key' secret_key = 'secret_key' upbit = ub.Upbit(access=access_key, secret=secret_key) order_list = upbit.get_order(ticker_or_uuid='KRW-ETH', state='wait', li..
buy_market_order -> 시장가에 코인 매수 sell_market_order -> 시장가에 코인 매도 Syntax buy_market_order(ticker='KRW-ETH', price=100000) ticker = 시장가에 매수할 ticker price = 매수할 양(얼마치를 매수할지) (KRW-ETH를 시장가에 100000원어치 매수한다는 예시입니다.) sell_market_order(ticker='KRW-ETH', volume=1.5) ticker = 시장가에 매도할 ticker volume = 시장가에 매도할 개수 (KRW-ETH를 1.5개 시장가에 매도한다는 예시입니다.) import pyupbit as ub access_key = 'access_key' secret_key = 's..
buy_limit_order method를 이용하면 코인을 지정가에 구매할 수 있습니다. sell_limit_order method를 이용하면 코인을 지정가에 판매할 수 있습니다. Syntax buy_limit_order(ticker='KRW-ETH', price=3000000, volume=0.003) ticker = 구매를 원하는 코인의 ticker price = 구매하고 싶은 가격 volume = 구매할 개수 sell_limit_order(ticker='KRW-ETH', price=3000000, volume=0.003) ticker = 판매를 원하는 코인의 ticker price = 판매하고 싶은 가격 volume = 판매할 개수 buy_limit_order, sell_limit_order met..
pyupbit를 이용할 때 나의 자산을 조회하려면 get_balances method를 이용합니다. 자산 조회부터는 민감한 정보이므로 정상적인 기능을 사용하기 위해선 access key, secret key가 필요합니다. access key, secret key 발급을 위해선 아래 링크를 참고합시다. access key, secret key 발급 = https://cosmosproject.tistory.com/491 import pyupbit as ub access_key = 'access_key' secret_key = 'secret_key' upbit = ub.Upbit(access=access_key, secret=secret_key) my_balance = upbit.get_balances() p..