Code Monkey home page Code Monkey logo

funding-rate-arbitrage's Introduction

Hi there ๐Ÿ‘‹

funding-rate-arbitrage's People

Contributors

aoki-h-jp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

funding-rate-arbitrage's Issues

Errors on Bybit, OKX, Gate

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

How to run this?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.