Skip to content

Instantly share code, notes, and snippets.

@KobayashiTakaki
KobayashiTakaki / bf-realtime-api-sample.go
Created October 5, 2024 15:16
bitFlyer lightning Realtime API から約定を取得するGoのサンプルコード
package main
import (
"encoding/json"
"fmt"
"net/url"
"time"
"github.com/gorilla/websocket"
)
@KobayashiTakaki
KobayashiTakaki / bitflyer_websocket_executions.py
Created January 22, 2020 16:06
bitFlyerのWebSocket APIで約定履歴を取得する
import socketio
sio = socketio.Client()
@sio.event
def connect():
sio.emit('subscribe', 'lightning_executions_FX_BTC_JPY')
@sio.event
def lightning_executions_FX_BTC_JPY(data):
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
url = "https://example.com/login/"
user = "username"
password = "password"
driver = webdriver.Chrome()
driver.implicitly_wait(3)