🏦 Exchange | 💱 Trading Fee | 📤 Withdrawal Fee | 📝 memo |
---|---|---|---|
bitFlyer | 0.15 ~ 0.01 % | 0.0004 BTC | |
Liquid | 0.0 % | 0.0007 BTC | |
bitbank | -0.02 / 0.12 % | 0.0006 BTC | 💱 Maker / Taker |
SBIVCTrade | 0.0 % | 0.0 BTC | |
GMOcoin | -0.01 / 0.05 % | 0.0 BTC | 💱 Maker / Taker |
HuobiJapan | 0.1 ~ 0.008 % /0.1 ~ 0.024 % | 0.0005 BTC | 💱 Maker / Taker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import hmac | |
import json | |
import time | |
import urllib.parse | |
from threading import Thread | |
from collections import deque | |
from requests import Request, Session | |
from requests.exceptions import HTTPError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import time | |
# ①クラスをインポートする | |
from pybybit import Bybit | |
if __name__ == '__main__': | |
# ②インスタンスを生成、パラメーターを設定する | |
bybit = Bybit(api_key='xxxx', | |
secret='yyyy', symbol='BTCUSD', ws=True, test=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from gmocoiner import GMOCoin | |
if __name__ == '__main__': | |
api_key = 'YOUR_API_KEY' | |
secret = 'YOUR_SECRET_KEY' | |
gmo = GMOCoin(api_key, secret, late_limit=True, logger=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pybybitのインポート | |
import pybybit | |
# (当説明スクリプト上で使うインポート) | |
from pprint import pp | |
import time | |
# API情報を入力 | |
apis = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg = 'bar' | |
print(f'hello, {msg}!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.client | |
import json | |
import time | |
import urllib.request | |
def main() -> None: | |
print('絶対に負けないbotを起動しました...Ctrl+Cで終了') | |
while True: | |
print('売買判断...') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http.client | |
import json | |
import urllib.request | |
resp: http.client.HTTPResponse | |
with urllib.request.urlopen('https://api.bybit.com/v2/public/symbols') as resp: | |
data = json.loads(resp.read().decode()) | |
print(*filter(lambda x: all([x['name'] != x['alias'], x['status'] == 'Trading']), data['result']), sep='\n\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from typing import Any, Dict | |
import motor.motor_asyncio | |
import pybotters | |
class BybitMongoDB: | |
def __init__(self): | |
client = motor.motor_asyncio.AsyncIOMotorClient() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import itertools | |
import time | |
import aiohttp | |
""" | |
WebSocket テストクライアント | |
テストサーバーに接続して 0 から始まるサーバーのカウンターとローカルのカウンターの一致を照合する。 | |
カウンターが 10 の時点で CPU バウンドのブロッキング処理を行う。(1億回ループの加算、自環境10秒程度) |
OlderNewer