Skip to main content

Withdraw

Endpoint

POST /withdraw

Parameters

ParameterTypeRequiredDescription
currency_namestringYesName of the currency to withdraw (e.g., BTC).
amountstringYesAmount of the currency to withdraw.

Headers

HeaderTypeRequiredDescription
session-tokenstringYesAuthorization token.
api-keystringYesAPI key for user authentication.

Note: You must provide either session-token or api-key in the headers for authentication.

Response

HTTP Status Code

  • 200 OK: Withdrawal successfully.
  • 4XX: Client error.
  • 5XX: Server error.

Example Usage

curl --location 'https://spot-markets.goonus.io/withdraw' \
--header 'session-token: xxx' \
--data '{
"currency_name": "VNDC",
"amount": "1"
}'