Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 2.27 KB

WithdrawalApi.md

File metadata and controls

76 lines (55 loc) · 2.27 KB

gate_api.WithdrawalApi

All URIs are relative to https://api.gateio.ws/api/v4

Method HTTP request Description
withdraw POST /withdrawals Withdraw

withdraw

LedgerRecord withdraw(ledger_record)

Withdraw

Example

  • Api Key Authentication (apiv4):
from __future__ import print_function
import gate_api
from gate_api.exceptions import ApiException, GateApiException
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
# See configuration.py for a list of all supported configuration parameters.
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure APIv4 key authorization
configuration = gate_api.Configuration(
    host = "https://api.gateio.ws/api/v4",
    key = "YOU_API_KEY",
    secret = "YOUR_API_SECRET"
)

api_client = gate_api.ApiClient(configuration)
# Create an instance of the API class
api_instance = gate_api.WithdrawalApi(api_client)
ledger_record = gate_api.LedgerRecord() # LedgerRecord | 

try:
    # Withdraw
    api_response = api_instance.withdraw(ledger_record)
    print(api_response)
except GateApiException as ex:
    print("Gate api exception, label: %s, message: %s\n" % (ex.label, ex.message))
except ApiException as e:
    print("Exception when calling WithdrawalApi->withdraw: %s\n" % e)

Parameters

Name Type Description Notes
ledger_record LedgerRecord

Return type

LedgerRecord

Authorization

apiv4

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
202 Withdraw request is accepted. Refer to withdrawal records for status -

[Back to top] [Back to API list] [Back to Model list] [Back to README]