Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bybit): ws spot orders parsing #18692

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Conversation

carlosmiei
Copy link
Collaborator

@carlosmiei carlosmiei added the bug label Jul 28, 2023
@carlosmiei carlosmiei self-assigned this Jul 28, 2023
@carlosmiei
Copy link
Collaborator Author

DEMO

 p bybit watchOrders --sandbox
Python v3.10.9
CCXT v4.0.42
bybit.watchOrders()
[{'amount': 0.000601,
  'average': 16638.14717138103,
  'clientOrderId': '1690543410273671',
  'cost': 9.99952645,
  'datetime': '2023-07-28T11:23:30.282Z',
  'fee': None,
  'fees': [],
  'filled': 0.000601,
  'id': '1474779448353054208',
  'info': {'avgPrice': '',
           'blockTradeId': '',
           'cancelType': 'UNKNOWN',
           'category': 'spot',
           'closeOnTrigger': False,
           'createdTime': '1690543410282',
           'cumExecFee': '0',
           'cumExecQty': '0.000601',
           'cumExecValue': '9.99952645',
           'feeCurrency': '',
           'isLeverage': '0',
           'lastPriceOnCreated': '',
           'leavesQty': '',
           'leavesValue': '',
           'orderId': '1474779448353054208',
           'orderIv': '',
           'orderLinkId': '1690543410273671',
           'orderStatus': 'PartiallyFilledCanceled',
           'orderType': 'Market',
           'positionIdx': 0,
           'price': '0.000',
           'qty': '10.00000000',
           'reduceOnly': False,
           'rejectReason': '',
           'side': 'Buy',
           'slTriggerBy': '',
           'smpGroup': 0,
           'smpOrderId': '',
           'smpType': 'None',
           'stopLoss': '',
           'stopOrderType': '',
           'symbol': 'BTCUSDT',
           'takeProfit': '',
           'timeInForce': 'GTC',
           'tpTriggerBy': '',
           'triggerBy': '',
           'triggerDirection': 0,
           'triggerPrice': '',
           'updatedTime': '1690543410302'},
  'lastTradeTimestamp': 1690543410302,
  'lastUpdateTimestamp': None,
  'postOnly': False,
  'price': 16638.14717138103,
  'reduceOnly': False,
  'remaining': 0.0,
  'side': 'buy',
  'status': 'canceled',
  'stopLossPrice': None,
  'stopPrice': None,
  'symbol': 'BTC/USDT',
  'takeProfitPrice': None,
  'timeInForce': 'GTC',
  'timestamp': 1690543410282,
  'trades': [],
  'triggerPrice': None,
  'type': 'market'}]

@kroitor kroitor merged commit c6a1e3d into ccxt:master Jul 28, 2023
2 checks passed
kroitor pushed a commit that referenced this pull request Jul 28, 2023
fix(bybit): ws spot orders parsing

[ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bybit spot market buy orders unexpected behavior
2 participants