Venly API
Search…
⌃K

Withdraw balance

Endpoint to withdraw your balance/credits in USDC to an Ethereum wallet
post
https://api.venly.market
/orders
Withdraw USDC from the main balance or for a sub user

Example

Request

POST https://api.venly.market/orders

Request Body

{
"address": "0x8D6331D6C5ba3306961F0b4Ea13ff13aa43560b9",
"amount": 10,
"userId": "0937da0a-1158-4de7-bcba-94009bfcc1b8",
"chain": "MATIC",
"type": "WITHDRAWAL"
}

Response

{
"success": true,
"result": {
"id": "e70fcc4e-e2d5-41ee-ad1d-e10a716b9417",
"userId": "0937da0a-1158-4de7-bcba-94009bfcc1b8",
"quantity": 5,
"marketFee": 5,
"status": "APPROVED",
"date": "2022-11-23T12:57:27.673672Z",
"type": "WITHDRAWAL",
"transaction": {
"blockchain": "MATIC",
"destination": "0x8D6331D6C5ba3306961F0b4Ea13ff13aa43560b9"
}
}
}