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(mexcPro): add fee to trade #22320

Merged
merged 2 commits into from Apr 29, 2024
Merged

Conversation

carlosmiei
Copy link
Collaborator

@carlosmiei carlosmiei commented Apr 28, 2024

@carlosmiei carlosmiei self-assigned this Apr 28, 2024
@carlosmiei
Copy link
Collaborator Author

DEMO

 p mexc watchMyTrades                                              
Python v3.11.7
CCXT v4.3.11
mexc.watchMyTrades()
[{'amount': 5.71,
  'cost': 5.712855,
  'datetime': '2024-04-28T17:39:52.684Z',
  'fee': {'cost': 0.005712855, 'currency': 'USDT'},
  'fees': [{'cost': 0.005712855, 'currency': 'USDT'}],
  'id': '4f77f4eb6d8840fcad7a8a7e01e21fff',
  'info': {'N': 'USDT',
           'S': 1,
           'T': 1714325992684,
           'a': '5.712855',
           'c': '',
           'i': 'C02__413322473367490562043',
           'm': 0,
           'n': '0.005712855',
           'p': '1.0005',
           'st': 0,
           't': '4f77f4eb6d8840fcad7a8a7e01e21fff',
           'v': '5.71'},
  'order': 'C02__413322473367490562043',
  'price': 1.0005,
  'side': 'buy',
  'symbol': 'USDC/USDT',
  'takerOrMaker': 'taker',
  'timestamp': 1714325992684,
  'type': None}]

@carlosmiei carlosmiei merged commit ef0b1dc into ccxt:master Apr 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MEXC: No fee info in watchMyTrades
1 participant