Skip to content

Commit

Permalink
Merge pull request #485 from tiagosiebler/multiplefutorder
Browse files Browse the repository at this point in the history
fix(v2.13.18, #482): pass-through number type for submit multiple orders endpoint
  • Loading branch information
tiagosiebler authored Nov 25, 2024
2 parents 6c196a2 + 25231ca commit 1d64495
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "binance",
"version": "2.13.17",
"version": "2.13.18",
"description": "Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/usdm-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ export class USDMClient extends BaseRestClient {
*
* Known issue: `quantity` and `price` should be sent as strings
*/
submitMultipleOrders(
orders: NewFuturesOrderParams<string>[],
submitMultipleOrders<TNumberType = number>(
orders: NewFuturesOrderParams<TNumberType>[],
): Promise<(NewOrderResult | NewOrderError)[]> {
const stringOrders = orders.map((order) => {
const orderToStringify = { ...order };
Expand Down

0 comments on commit 1d64495

Please sign in to comment.