Giter VIP home page Giter VIP logo

Comments (4)

rapcmia avatar rapcmia commented on June 2, 2024

Reproduced when testing dydx_v4 connector (oneway mode, hedge not supported)

2024-05-10 19:28:12,028 - 5142 - hummingbot.strategy.script_strategy_base - INFO - Creating LINK-USD sell order: price: 14.2965 amount: 0.6994718987164690658552792642.
2024-05-10 19:28:14,442 - 5142 - hummingbot.connector.client_order_tracker - INFO - Created MARKET SELL order 864108787 for 0 to OPEN a LINK-USD position.
2024-05-10 19:28:14,443 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340494.0, "type": "OrderType.MARKET", "trading_pair": "LINK-USD", "amount": "0", "price": "14.2965", "order_id": "864108787", "creation_timestamp": 1715340492.0, "exchange_order_id": null, "leverage": 20, "position": "OPEN", "event_name": "SellOrderCreatedEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:28:16,052 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340496.0, "order_id": "864108787", "base_asset": "LINK", "quote_asset": "USD", "base_asset_amount": "0", "quote_asset_amount": "0", "order_type": "OrderType.MARKET", "exchange_order_id": "cf334570-8374-5bde-bbf6-696b08bb1586", "event_name": "SellOrderCompletedEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:28:16,052 - 5142 - hummingbot.connector.client_order_tracker - INFO - SELL order 864108787 completely filled.
2024-05-10 19:28:16,052 - 5142 - hummingbot.connector.client_order_tracker - INFO - The SELL order 864108787 amounting to 1/0 LINK has been filled.
2024-05-10 19:28:16,053 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340496.0, "order_id": "864108787", "trading_pair": "LINK-USD", "trade_type": "TradeType.SELL", "order_type": "OrderType.MARKET", "price": "14.298", "amount": "1", "trade_fee": {"percent": "0", "percent_token": "USD", "flat_fees": [{"token": "USD", "amount": "0.007149"}]}, "exchange_trade_id": "5aa35da7-b994-56dd-9b47-0bfcbd393aac", "exchange_order_id": "cf334570-8374-5bde-bbf6-696b08bb1586", "leverage": 20, "position": "OPEN", "event_name": "OrderFilledEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:31:00,397 - 5142 - hummingbot.strategy.script_strategy_base - INFO - Creating LINK-USD buy order: price: 14.2835 amount: 0.7001085168201071166030734764.
2024-05-10 19:31:02,801 - 5142 - hummingbot.connector.client_order_tracker - INFO - Created MARKET BUY order 1032477151 for 0 to OPEN a LINK-USD position.
2024-05-10 19:31:02,805 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340662.0, "type": "OrderType.MARKET", "trading_pair": "LINK-USD", "amount": "0", "price": "14.2835", "order_id": "1032477151", "creation_timestamp": 1715340660.0, "exchange_order_id": null, "leverage": 20, "position": "OPEN", "event_name": "BuyOrderCreatedEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:31:04,367 - 5142 - hummingbot.connector.client_order_tracker - INFO - The BUY order 1032477151 amounting to 1/0 LINK has been filled.
2024-05-10 19:31:04,367 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340664.0, "order_id": "1032477151", "trading_pair": "LINK-USD", "trade_type": "TradeType.BUY", "order_type": "OrderType.MARKET", "price": "14.284", "amount": "1", "trade_fee": {"percent": "0", "percent_token": "USD", "flat_fees": [{"token": "USD", "amount": "0.007142"}]}, "exchange_trade_id": "75f4fa33-d5f7-5bb1-aaf0-e60e31af3787", "exchange_order_id": "9e131492-88c3-57b6-ab9a-b558130f245c", "leverage": 20, "position": "OPEN", "event_name": "OrderFilledEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:31:04,378 - 5142 - hummingbot.core.event.event_reporter - EVENT_LOG - {"timestamp": 1715340664.0, "order_id": "1032477151", "base_asset": "LINK", "quote_asset": "USD", "base_asset_amount": "1", "quote_asset_amount": "14.284", "order_type": "OrderType.MARKET", "exchange_order_id": "9e131492-88c3-57b6-ab9a-b558130f245c", "event_name": "BuyOrderCompletedEvent", "event_source": "dydx_v4_perpetual"}
2024-05-10 19:31:04,382 - 5142 - hummingbot.connector.client_order_tracker - INFO - BUY order 1032477151 completely filled.
  • Got an opportunity to open short position
  • After few secs, got another to open for long position but instead it closes the short position
  • Now no position opened but we have active executor displayed on status
  • Execute stop command:
    image
    • If the executor reaches the time_limit or stop command executed, it creates a market order only on the hummingbot client. This order does not have exchange_order_id
    • The executor stuck on a endless loop of Waiting for close order to be filled...
    • Repeats itself every 2s

logs_conf_v2_generic_with_controllers_1.log

from hummingbot.

cardosofede avatar cardosofede commented on June 2, 2024

from hummingbot.

rapcmia avatar rapcmia commented on June 2, 2024

Hi @cardosofede thanks for the reply, its the same bollinger_v1 controller-config

from hummingbot.

rapcmia avatar rapcmia commented on June 2, 2024

If you are in one way mode, you can’t open long and short at the same time. The long will reduce the short always.

I think this is something to do with my bb thresholds, set values are too tight therefore when it has opportunity to go either long or short, it immediate creates market orders

bb_long_threshold: 0.5
bb_short_threshold: 0.7

from hummingbot.

Related Issues (20)

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.