ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
32.63k stars 7.49k forks source link

Poloniex async create_order returns incorrect response #22910

Open quantitative-technologies opened 3 months ago

quantitative-technologies commented 3 months ago

Operating System

Linux

Programming Languages

Python

CCXT Version

4.3.52

Description

The function create_order of the poloniex exchange in ccxt.pro returns an incorrect order structure:

{'id': '329324930787340289', 'clientOrderId': '', 'type': 'buy'}

It appears that either 'type': 'limit' or 'side': 'buy', or perhaps both fields, was intended.

Code

  
carlosmiei commented 3 months ago

Hello @quantitative-technologies, thanks for reporting it, we will fix it shortly

carlosmiei commented 3 months ago

@quantitative-technologies Can you update your ccxt version and try again? I believe it should be working now

quantitative-technologies commented 3 months ago

Yes, that fixed create_order. I made a pull request for the similar fix to edit_order.