diff --git a/README.md b/README.md index e50eb35..f0f1ba6 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,7 @@ Create an order for the specified trading pair. _Create an order to sell 5 GAS for NEO at the specified price:_ ```javascript -kc.createWithdrawal({ +kc.createOrder({ pair: 'GAS-NEO', amount: 5, price: 0.608004 diff --git a/index.js b/index.js index 7583da6..b805b37 100644 --- a/index.js +++ b/index.js @@ -518,7 +518,7 @@ class Kucoin { * @param {{pair: string, amount: number, price: number, type: string}} params Order details including the trading pair, amount, price, and type of order. * @return {Promise} An object containing the API response. * @example Create an order to sell 5 GAS for NEO at the specified price: - * kc.createWithdrawal({ + * kc.createOrder({ * pair: 'GAS-NEO', * amount: 5, * price: 0.608004