Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {ApiRequest, ApiAdapter, ApiRequestMethod} from 'api'
- export default function (bankAccountId, portfolioId, clientId: string, twoFAToken: string, token: string, adapter: ApiAdapter) {
- return adapter.handleRequest({
- path: `/api/v1/portfolio/${clientId}/liquidate`,
- method: ApiRequestMethod.post,
- data: {
- data: {
- attributes: {
- id: portfolioId,
- 'bank-account-id': bankAccountId,
- 'money-withdrawal-reason-type': moneyWithdrawalReasonType,
- 'money-withdrawal-reason': moneyWithdrawalReason
- }
- }
- }
- }, {authToken: token, twoFAToken})
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement