-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I got double order when calling the function createOrder
This is my code
const createOrder = (price, amount, side) => {
const api = new GateApi.SpotApi(client);
const order = new Order(); // Order |
order.price = price; // string | Order price
order.amount = amount; // string | Order amount
order.side = side; // string | Order side
order.currencyPair = currencyPair; // string | Currency pair
api.createOrder(order).then(
(value) =>
console.log("API called successfully. Returned data: ", value.body),
(error) => console.error(error)
);
};
Thanks!
YoussefAfla, wantmyusername and btwiuse
Metadata
Metadata
Assignees
Labels
No labels
