aoki-h-jp / funding-rate-arbitrage Goto Github PK
View Code? Open in Web Editor NEWFunding rate arbitrage on cryptocurrency.
License: MIT License
Funding rate arbitrage on cryptocurrency.
License: MIT License
There are errors of this kind:
[22:32:58] ERROR BTC/USDC:USDC-240405 is not perp. frarb.py:51
โโโโโโ Traceback (most recent call last) โโโโโโ
โ D:\Dwnld\pyProject\funding-rate-arbitrage-m โ
โ ain\funding_rate_arbitrage\frarb.py:49 in โ
โ fetch_all_funding_rate โ
โ โ
โ 46 โ โ fr_d = {} โ
โ 47 โ โ for p in perp: โ
โ 48 โ โ โ try: โ
โ > 49 โ โ โ โ fr_d[p] = ex.fetch_fu โ
โ 50 โ โ โ except ExchangeError: โ
โ 51 โ โ โ โ log.exception(f"{p} i โ
โ 52 โ โ return fr_d โ
โ โ
โ D:\Dwnld\pyProject\funding-rate-arbitrage-m โ
โ ain\.venv\Lib\site-packages\ccxt\base\excha โ
โ nge.py:4798 in fetch_funding_rate โ
โ โ
โ 4795 โ โ โ symbol = market['symbol' โ
โ 4796 โ โ โ if not market['contract' โ
โ 4797 โ โ โ โ raise BadSymbol(self โ
โ only') โ
โ > 4798 โ โ โ rates = self.fetchFundin โ
โ 4799 โ โ โ rate = self.safe_value(r โ
โ 4800 โ โ โ if rate is None: โ
โ 4801 โ โ โ โ raise NullResponse(s โ
โ + symbol) โ
โ โ
โ D:\Dwnld\pyProject\funding-rate-arbitrage-m โ
โ ain\.venv\Lib\site-packages\ccxt\bybit.py:2 โ
โ 325 in fetch_funding_rates โ
โ โ
โ 2322 โ โ type = None โ
โ 2323 โ โ type, params = self.handle_m โ
โ params) โ
โ 2324 โ โ if type != 'swap': โ
โ > 2325 โ โ โ raise NotSupported(self. โ
โ + ' markets') โ
โ 2326 โ โ else: โ
โ 2327 โ โ โ subType = None โ
โ 2328 โ โ โ subType, params = self.h โ
โ market, params, 'linear') โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
NotSupported: bybit fetchFundingRates() does
not support future markets
And on the OKX exchange:
ExchangeError: okx fetchFundingRate() is only
valid for swap markets
And on the GATE exchange
gate fetchFundingRate() supports
swap contracts only
I tried to figure it out myself, but my level of code writing is 0 :D
fr.figure_funding_rate_history(exchange='binance',symbol='BTC/USDT:USDT')
raise BadSymbol('{} does not have market symbol {}'.format(self.id, symbol))
ccxt.base.errors.BadSymbol: binance does not have market symbol BTC/USDT:USDT
i have intslled by downoading package and then just pip install -r requirments.txt ... after packages were installed i run this command:
python fetch_funding_rate_all_exchanges.py - from examples folder but got error :
\examples\fetch_funding_rate_all_exchanges.py", line 4, in
from funding_rate_arbitrage.frarb import FundingRateArbitrage
ModuleNotFoundError: No module named 'funding_rate_arbitrage'
What i am doing wrong?
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.