nkaz001 / collect-binancefutures Goto Github PK
View Code? Open in Web Editor NEWCollect BinanceFutures's trade and orderbook(depth) feeds.
Collect BinanceFutures's trade and orderbook(depth) feeds.
Are you planning to add more exchange consumers?
There are other exchanges that offers better terms to classify as market maker and also have better rebates.
Also, do you accepts contributions for other exchange consumers for this specific project? If you are busy, I can contribute.
hbt = HftBacktest(
[
'btcusdt_20240522.npz',
],
tick_size=0.01,
lot_size=0.001,
maker_fee=-0.00005,
taker_fee=0.0007,
order_latency=FeedLatency(),
queue_model=SquareProbQueueModel(),
asset_type=Linear,
trade_list_size=10_000,
)
@njit
def print_bbo(hbt):
t = 0
bid_prices = np.zeros(11721077)
ask_prices = np.zeros(11721077)
while hbt.elapse(100000):
bid_prices[t] = hbt.best_bid
ask_prices[t] = hbt.best_ask
t = t + 1
print(t)
# !!!!
hbt.clear_last_trades()
if not hbt.run and t >= bid_prices :
break
return bid_prices, ask_prices
bid_prices, ask_prices = print_bbo(hbt)
max(bid_prices) # 70642.7
min(bid_prices) # ???? -9.223372036854776e+16
I download data using python, But I fould some bid_price where strange. Is it a collection error?
Here is the data sample
Thank you for your wonderful application, I just found that after collecting several days, all websocket connections are dead. Is there any way to fix this? Thank you.
I am running the collect.sh for eth usdt, and the code is outputting to a file:
ethusdt_20230922.dat
Will there be another file created tomorrow (on 23 September) called
ethusdt_20230923.dat , or the code will continue outputting to the first file created?
After running several times for a period, you must meet the rate limit (https://developers.binance.com/docs/derivatives/usds-margined-futures/general-info#limits), how do you handle that?
Is it possible to fetch historical market depth?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.