Skip to content

Commit

Permalink
feat: add quote endpoint for withdrawals from synthetic usd balance
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanis Michalakis committed May 27, 2024
1 parent bbcaf27 commit bb97a78
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,15 @@ export const createRestClient = (options: RestOptions = {}) => {
})
}

const userWithdrawUsd = (data: any) => {
return request({
method: 'POST',
path: '/user/withdraw/usd',
requireAuth: true,
data,
})
}

const userWithdrawHistory = (data: any) => {
return request({
method: 'GET',
Expand Down Expand Up @@ -339,6 +348,7 @@ export const createRestClient = (options: RestOptions = {}) => {
userDeposit,
userDepositHistory,
userWithdraw,
userWithdrawUsd,
userWithdrawHistory,
optionsInstrument,
optionsInstruments,
Expand Down

0 comments on commit bb97a78

Please sign in to comment.