본문 바로가기

코인원 자동매수/매도 프로그램 연휴동안 심심해서 만들어본 비트코인 자동 매도,매수 프로그램 (coinone) 안녕하세요. 연휴동안 심심해서 만들어본 코인원 매도,매수 프로그램입니다. 주변에서 가상화폐 하시는분이 계셔서 한 100만원만 해볼까 해서 시작하다. API문서 가 잘되어있길래 한번 만들어보았어요 ㅎ 기본적인 로직은 1. 투자금액(시작) 에서 특정 ?% 오르면 매도 2. 특정 ?% 내리면 매수 입니다. 별거없어요 ㅎcoinAnalyzer.py#-*- coding: utf-8 -*- import websocket import _thread from threading import Thread, current_thread import time import json import logging import logging.handlers .. 더보기
폴로닉스 골격 API import urllib import urllib2 import json import time import hmac,hashlib api_key = '여기에 API_key 넣으세요' api_secret = '여기에 API_secret 넣으세요' def createTimeStamp(datestr, format="%Y-%m-%d %H:%M:%S"): return time.mktime(time.strptime(datestr, format)) class poloniex: def __init__(self, APIKey, Secret): self.APIKey = APIKey self.Secret = Secret def post_process(self, before): after = before # Add times.. 더보기
빗썸 API 정리 빗썸 공식 홈페이지 API 링크 https://www.bithumb.com/u1/US127 1. Public API https://api.bithumb.com/public/ticker/{currency} 거래소 마지막 거래 정보 * {currency} = BTC, ETH, DASH, LTC, ETC, XRP, BCH, XMR, ZEC, QTUM, BTG (기본값: BTC), ALL(전체) [Returned Example] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 { "status": "0000", "data": { "opening_price" : "504000", "closing_price" : "505000", "min_price" : "504000", "max_price".. 더보기