Skip to content

Commit 06ee8d4

Browse files
committed
add ability to place and cancel orders in bulk
1 parent 10ddf4a commit 06ee8d4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/client/client.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,11 +3986,17 @@ export class Client {
39863986
variables[`s${names[index]}`] = item.signature
39873987
})
39883988

3989-
const result = await this.gql.mutate({
3990-
mutation,
3991-
variables
3992-
})
3989+
try {
3990+
const result = await this.gql.mutate({
3991+
mutation,
3992+
variables
3993+
})
3994+
console.info("Result: ", result)
3995+
return Object.keys(result.data).map(k => result.data[k]) as OrderPlaced[]
3996+
3997+
} catch(e) {
3998+
console.info(e)
3999+
}
39934000

3994-
return Object.keys(result.data).map(k => result.data[k]) as OrderPlaced[]
39954001
}
39964002
}

0 commit comments

Comments
 (0)