Giter Site home page Giter Site logo

Comments (11)

MfaXyz avatar MfaXyz commented on June 8, 2024

Hello @hosseinab,
did you download it and put with triarb_kucoin.py on the same folder? :
image

from crypto-triangular-arbitrage-bot.

hosseinab avatar hosseinab commented on June 8, 2024

hi @MfaXyz
Untitled

from crypto-triangular-arbitrage-bot.

MfaXyz avatar MfaXyz commented on June 8, 2024

@hosseinab, so maybe you should run first_step() and second_step() to create new json!

from crypto-triangular-arbitrage-bot.

hosseinab avatar hosseinab commented on June 8, 2024

@MfaXyz
thank you for answer . this problem fixed .
i get another error :

{'profit_loss': 0.0036818770215720775, 'real_rate_perc': 0.0248817957743147, 'swap_1': 'BTC', 'contract_1': 'BTC-USDT', 'bid_con_1': '20127', 'swap_2': 'USDT', 'contract_2': 'SOLVE-USDT', 'ask_con_2': '0.03506', 'swap_3': 'SOLVE', 'contract_3': 'SOLVE-BTC', 'bid_con_3': '0.000001735', 'contract_1_direction': 'base_to_quote', 'contract_2_direction': 'quote_to_base', 'contract_3_direction': 'base_to_quote'}
BTC-USDT
{'first_amount1': 14.79747304, 'base_increment1': 8, 'available_amount1': '14.79747304', 'final_amount1': '14.64949831'}
Traceback (most recent call last):
  File "C:\Users\Hosein\PycharmProjects\Crypto-Triangular-Arbitrage-Bot\triarb_kucoin.py", line 667, in <module>
    third_step()
  File "C:\Users\Hosein\PycharmProjects\Crypto-Triangular-Arbitrage-Bot\triarb_kucoin.py", line 604, in third_step
    buy = client.create_market_order(real_rate_arb['contract_1'],
  File "C:\Users\Hosein\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\trade\trade.py", line 164, in create_market_order
    return self._request('POST', '/api/v1/orders', params=params)
  File "C:\Users\Hosein\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\base_request\base_request.py", line 99, in _request
    return self.check_response_data(response_data)
  File "C:\Users\Hosein\AppData\Local\Programs\Python\Python310\lib\site-packages\kucoin\base_request\base_request.py", line 116, in check_response_data
    raise Exception("{}-{}".format(response_data.status_code, response_data.text))
Exception: 200-{"code":"200004","msg":"Balance insufficient!"}


from crypto-triangular-arbitrage-bot.

MfaXyz avatar MfaXyz commented on June 8, 2024

@hosseinab, so I think you should have BTC to trade!

from crypto-triangular-arbitrage-bot.

hosseinab avatar hosseinab commented on June 8, 2024

@MfaXyz Base Currency in this bot is BTC ?

from crypto-triangular-arbitrage-bot.

MfaXyz avatar MfaXyz commented on June 8, 2024

@hosseinab, yes.
and you should look at this comment:
image

from crypto-triangular-arbitrage-bot.

hosseinab avatar hosseinab commented on June 8, 2024

@MfaXyz ok . thank you .
Can I set the base currency on the usdt?

from crypto-triangular-arbitrage-bot.

MfaXyz avatar MfaXyz commented on June 8, 2024

@MfaXyz ok . thank you .
Can I set the base currency on the usdt?

Yes.

from crypto-triangular-arbitrage-bot.

hosseinab avatar hosseinab commented on June 8, 2024

@MfaXyz How is it done?

from crypto-triangular-arbitrage-bot.

MfaXyz avatar MfaXyz commented on June 8, 2024

@MfaXyz How is it done?

you should review code.

from crypto-triangular-arbitrage-bot.

Related Issues (6)

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.