Skip to content

Instantly share code, notes, and snippets.

@HHIR
HHIR / gist:a78627b13517dc514fc4bd04d313b93f
Last active January 22, 2022 12:25
stream Unicorn data to OHLC format
from unicorn_binance_websocket_api.unicorn_binance_websocket_api_manager import BinanceWebSocketApiManager
import os
import time
from unicorn_fy.unicorn_fy import UnicornFy
import talib
import pandas as pd
import pandas_ta as pta
import numpy as np
import os
@HHIR
HHIR / example_demo2.py
Last active January 16, 2022 23:10
How can get variable from unicorn-binance-websocket-api stream results?
from unicorn_binance_websocket_api.unicorn_binance_websocket_api_manager import BinanceWebSocketApiManager
import os
import time
from unicorn_fy.unicorn_fy import UnicornFy
import talib
import pandas as pd
import pandas_ta as pta
import numpy as np
import os