Coder Social home page Coder Social logo

cbot's People

Contributors

cryptorobotfr avatar

Stargazers

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

Watchers

 avatar  avatar

cbot's Issues

get_open_position en erreur sur le bot en futures FTX

Lors de l'appel de cette fonction : ftx.get_open_position(perpSymbol)
J'ai le message d'erreur suivant :
raise BadSymbol(self.id + ' does not have market symbol ' + symbol)
ccxt.base.errors.BadSymbol: ftx does not have market symbol S

Voici mon symbol : SOL-PERP sur FTX. J'ai essayer aussi ETH-PERP, en vain.

Avez-vous déjà eu cette erreur ?

Merci par avance

An error occured 'size'

Hello,
J'ai une erreur quand je lance aligatorPerpLive.py
J'obtiens:

"An error occured 'size'"

En réalité cela provient de la classe "cBot_perp_ftx"
Je penses que l'erreur vient de la fonction fetchPositions()
Elle renvoi dans mon cas un "nested dictionnary"

{'info': {'future': 'ETH-PERP', 'size': '0.0', 'side': 'buy', 'netSize': '0.0', 'longOrderSize': '0.0', 'shortOrderSize': '0.0', 'cost': '0.0', 'entryPrice': None, 'unrealizedPnl': '0.0', 'realizedPnl': '-2.97564255', 'initialMarginRequirement': '0.1', 'maintenanceMarginRequirement': '0.03', 'openSize': '0.0', 'collateralUsed': '0.0', 'estimatedLiquidationPrice': None, 'recentAverageOpenPrice': None, 'recentPnl': None, 'recentBreakEvenPrice': None, 'cumulativeBuySize': None, 'cumulativeSellSize': None}, 'symbol': 'ETH-PERP', 'timestamp': None, 'datetime': None, 'initialMargin': None, 'initialMarginPercentage': 0.1, 'maintenanceMargin': None, 'maintenanceMarginPercentage': 0.03, 'entryPrice': None, 'notional': None, 'leverage': 10, 'unrealizedPnl': None, 'contracts': 0.0, 'contractSize': 1.0, 'marginRatio': None, 'liquidationPrice': None, 'markPrice': None, 'collateral': None, 'marginType': 'cross', 'side': 'long', 'percentage': None}

Du coup les test du type :if float(position['size']) > 0 renvoi l'erreur
Il faudrait remplacer

if float(position['size']) > 0:
par
if float(position['info']['size']) > 0:

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.