Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-
, 'i'); if (__m === '*' || __re.test(location.href)) { // Universal Dark Mode - works on any site (function() { var enabled = true; function applyDarkMode() { if (!enabled) return; // Create style element if it doesn't exist var style = document.getElementById('universal-dark-mode-style'); if (!style) { style = document.createElement('style'); style.id = 'universal-dark-mode-style'; document.head.appendChild(style); } // Dark mode CSS - inverts colors but preserves images/video style.textContent = ' /* Invert everything except media */ html { filter: invert(1) hue-rotate(180deg) !important; background: #1a1a2e !important; } /* Restore images, videos, iframes, canvas */ img, video, iframe, canvas, svg, picture, [style*="background-image"] { filter: invert(1) hue-rotate(180deg) !important; } /* Preserve specific elements that should not be inverted */ .no-dark-mode, .no-dark-mode *, [data-theme="light"], [data-theme="light"], .ace_editor, .ace_editor *, .CodeMirror, .CodeMirror *, .monaco-editor, .monaco-editor *, .markdown-body pre, .markdown-body pre *, .highlight, .highlight *, pre code, pre code * { filter: none !important; } /* Fix common UI elements */ .modal, .popup, .dropdown-menu, .tooltip, .popover { filter: invert(1) hue-rotate(180deg) !important; background: #2d2d44 !important; border-color: #444 !important; } /* Scrollbars */ ::-webkit-scrollbar { background: #1a1a2e !important; } ::-webkit-scrollbar-thumb { background: #444 !important; } ::-webkit-scrollbar-thumb:hover { background: #555 !important; } /* Selection */ ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; } ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; } '; } function removeDarkMode() { var style = document.getElementById('universal-dark-mode-style'); if (style) style.remove(); } // Toggle with Alt+Shift+D document.addEventListener('keydown', function(e) { if (e.altKey && e.shiftKey && e.key === 'D') { e.preventDefault(); enabled = !enabled; if (enabled) { applyDarkMode(); console.log('[Universal Dark Mode] Enabled'); } else { removeDarkMode(); console.log('[Universal Dark Mode] Disabled'); } } }); // Apply on load applyDarkMode(); // Re-apply on dynamic content var observer = new MutationObserver(function(mutations) { if (enabled && !document.getElementById('universal-dark-mode-style')) { applyDarkMode(); } }); observer.observe(document.head, { childList: true }); console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle'); })(); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

History
1147 lines (889 loc) · 43.1 KB

File metadata and controls

1147 lines (889 loc) · 43.1 KB

OtcApi

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

MethodHTTP requestDescription
createOtcQuotePOST /otc/quoteFiat and stablecoin quote
createOtcOrderPOST /otc/order/createCreate fiat order
createStableCoinOrderPOST /otc/stable_coin/order/createCreate stablecoin order
getBankListInnerPathGET /otc/bank/listGet user bank card list
createOtcBankPOST /otc/bank/createCreate bank card
deleteOtcBankPOST /otc/bank/deleteDelete bank card
setDefaultOtcBankPOST /otc/bank/set_defaultSet default bank card
getOtcBankSupplementChecklistGET /otc/bank/bank_supplement_checklistQuery the checklist of materials to supplement for a bank card
submitOtcBankPersonalSupplementPOST /otc/bank/personal/bank_supplementSubmit Bank Card Supplement Materials (Personal)
submitOtcBankEnterpriseSupplementPOST /otc/bank/enterprise/bank_supplementSubmit Bank Card Supplement Materials (Enterprise)
markOtcOrderPaidPOST /otc/order/paidMark fiat order as paid (deposit confirmation)
cancelOtcOrderPOST /otc/order/cancelFiat order cancellation
listOtcOrdersGET /otc/order/listFiat order list
listStableCoinOrdersGET /otc/stable_coin/order/listStablecoin order list
getOtcOrderDetailGET /otc/order/detailFiat order details

createOtcQuote

OtcQuoteResponse createOtcQuote(otcQuoteRequest)

Fiat and stablecoin quote

Create fiat and stablecoin quotes, supporting both PAY and GET directions

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcQuoteRequestotcQuoteRequest = newOtcQuoteRequest(); // OtcQuoteRequest | try {
OtcQuoteResponseresult = apiInstance.createOtcQuote(otcQuoteRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcQuote");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcQuoteRequestOtcQuoteRequest

Return type

OtcQuoteResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Quote retrieved successfully-

createOtcOrder

OtcActionResponse createOtcOrder(otcOrderRequest)

Create fiat order

Create a fiat order, supporting BUY for on-ramp and SELL for off-ramp

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcOrderRequestotcOrderRequest = newOtcOrderRequest(); // OtcOrderRequest | try {
OtcActionResponseresult = apiInstance.createOtcOrder(otcOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcOrderRequestOtcOrderRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order created successfully-

createStableCoinOrder

OtcStableCoinOrderCreateResponse createStableCoinOrder(otcStableCoinOrderRequest)

Create stablecoin order

Create a stablecoin order. All request body fields except `promotion_code` are required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcStableCoinOrderRequestotcStableCoinOrderRequest = newOtcStableCoinOrderRequest(); // OtcStableCoinOrderRequest | try {
OtcStableCoinOrderCreateResponseresult = apiInstance.createStableCoinOrder(otcStableCoinOrderRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createStableCoinOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcStableCoinOrderRequestOtcStableCoinOrderRequest

Return type

OtcStableCoinOrderCreateResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Stablecoin order created successfully-

getBankListInnerPath

OtcBankListResponse getBankListInnerPath()

Get user bank card list

List the user's bank cards for selecting a card when placing an order. Default card: use the `is_default` field in each list item (`1` indicates the default). The deprecated standalone default-bank-card endpoint is no longer required.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
try {
OtcBankListResponseresult = apiInstance.getBankListInnerPath();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getBankListInnerPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

OtcBankListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

createOtcBank

OtcBankCreateResponse createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift)

Create bank card

Bind a bank card. Under the Global entity, an account with a non-matching name may enter manual review (`status` pending) and require subsequent supplementary materials. Corresponding Inner: `POST /bank/create`. Fields and protocol are subject to the production form/gateway; in some environments `bank_account_name` is passed Base64-encoded, see the integration notes for details.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankAccountName = "bankAccountName_example"; // String | StringbankName = "bankName_example"; // String | StringbankCountry = "bankCountry_example"; // String | StringbankAddress = "bankAddress_example"; // String | Stringiban = "iban_example"; // String | Stringswift = "swift_example"; // String | StringdocumentationFile = "documentationFile_example"; // String | Account opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)StringremittanceLineNumber = "remittanceLineNumber_example"; // String | StringagentBankName = "agentBankName_example"; // String | StringagentBankSwift = "agentBankSwift_example"; // String | try {
OtcBankCreateResponseresult = apiInstance.createOtcBank(bankAccountName, bankName, bankCountry, bankAddress, iban, swift, documentationFile, remittanceLineNumber, agentBankName, agentBankSwift);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#createOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankAccountNameString
bankNameString
bankCountryString
bankAddressString
ibanString
swiftString
documentationFileStringAccount opening proof file content (multipart file field, binary/Base64; jpg/jpeg/png/pdf, etc.; maximum 10 MB per file, subject to the live environment)
remittanceLineNumberString[optional]
agentBankNameString[optional]
agentBankSwiftString[optional]

Return type

OtcBankCreateResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

deleteOtcBank

OtcActionResponse deleteOtcBank(otcBankIdRequest)

Delete bank card

Delete the specified bank card. Corresponds to Inner: `POST /bank/delete`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.deleteOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#deleteOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Deleted successfully-

setDefaultOtcBank

OtcActionResponse setDefaultOtcBank(otcBankIdRequest)

Set default bank card

Set the specified bank card as default. Corresponds to Inner: `POST /bank/set_default`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcBankIdRequestotcBankIdRequest = newOtcBankIdRequest(); // OtcBankIdRequest | try {
OtcActionResponseresult = apiInstance.setDefaultOtcBank(otcBankIdRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#setDefaultOtcBank");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcBankIdRequestOtcBankIdRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Set successfully-

getOtcBankSupplementChecklist

OtcBankSupplementChecklistResponse getOtcBankSupplementChecklist(bankId)

Query the checklist of materials to supplement for a bank card

`bank_id` must be specified. After verifying that the card belongs to the current user and its status allows supplementary documents, the endpoint returns the required items based on the user's approved advanced verification type (personal/enterprise); each item's `description` states the submission requirements. Corresponding Inner endpoint: `GET /bank/bank_supplement_checklist`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Bank card ID (otc_rds / the id returned by the list endpoint).try {
OtcBankSupplementChecklistResponseresult = apiInstance.getOtcBankSupplementChecklist(bankId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcBankSupplementChecklist");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdStringBank card ID (otc_rds / the id returned by the list endpoint).

Return type

OtcBankSupplementChecklistResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

submitOtcBankPersonalSupplement

OtcActionResponse submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof)

Submit Bank Card Supplement Materials (Personal)

Personal professional verification (type=1) users submit non-same-person/supplementary materials. Must match `user_type=personal` returned by `GET /otc/bank/bank_supplement_checklist?bank_id=`, otherwise the request is rejected. multipart/form-data is recommended: each material item is a separate file field, with field names matching the checklist `code` (`id_document_front`, `id_document_back`, `address_proof`).

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | StringidDocumentFront = "idDocumentFront_example"; // String | ID document front-side file content (multipart file field, binary/Base64)StringidDocumentBack = "idDocumentBack_example"; // String | ID document back-side file content (multipart file field, binary/Base64)StringaddressProof = "addressProof_example"; // String | Proof-of-address file content (multipart file field, binary/Base64)try {
OtcActionResponseresult = apiInstance.submitOtcBankPersonalSupplement(bankId, idDocumentFront, idDocumentBack, addressProof);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankPersonalSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
idDocumentFrontStringID document front-side file content (multipart file field, binary/Base64)
idDocumentBackStringID document back-side file content (multipart file field, binary/Base64)
addressProofStringProof-of-address file content (multipart file field, binary/Base64)

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

submitOtcBankEnterpriseSupplement

OtcActionResponse submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional)

Submit Bank Card Supplement Materials (Enterprise)

Enterprise professional verification (type=2) users submit supplementary materials. Must match `user_type=enterprise` returned by the checklist. multipart file field names: `certificate`, `share_holders`, `passport`, `share_holding_structure`.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringbankId = "bankId_example"; // String | Stringcertificate = "certificate_example"; // String | Business license / registration certificate file content (multipart file field, binary/Base64)StringshareHolders = "shareHolders_example"; // String | Register of shareholders file content (multipart file field, binary/Base64)Stringpassport = "passport_example"; // String | Legal representative / shareholder passport file content (multipart file field, binary/Base64)StringshareHoldingStructure = "shareHoldingStructure_example"; // String | Ownership structure chart file content (multipart file field, binary/Base64)Stringuid = "uid_example"; // String | StringfundsStatement = "fundsStatement_example"; // String | Proof-of-funds file content (multipart file field, binary/Base64, optional)Stringadditional = "additional_example"; // String | Other supplementary material file content (multipart file field, binary/Base64, optional)try {
OtcActionResponseresult = apiInstance.submitOtcBankEnterpriseSupplement(bankId, certificate, shareHolders, passport, shareHoldingStructure, uid, fundsStatement, additional);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#submitOtcBankEnterpriseSupplement");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
bankIdString
certificateStringBusiness license / registration certificate file content (multipart file field, binary/Base64)
shareHoldersStringRegister of shareholders file content (multipart file field, binary/Base64)
passportStringLegal representative / shareholder passport file content (multipart file field, binary/Base64)
shareHoldingStructureStringOwnership structure chart file content (multipart file field, binary/Base64)
uidString[optional]
fundsStatementStringProof-of-funds file content (multipart file field, binary/Base64, optional)[optional]
additionalStringOther supplementary material file content (multipart file field, binary/Base64, optional)[optional]

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Accepted successfully-

markOtcOrderPaid

OtcActionResponse markOtcOrderPaid(otcMarkOrderPaidRequest)

Mark fiat order as paid (deposit confirmation)

Mark a fiat BUY order as paid (deposit confirmation). A user payment receipt must be uploaded: `payment_receipt_file_key` is required; supported formats are jpg/jpeg/png/pdf, with a maximum size of 10 MB per file (validated jointly by the service and gateway). The compatibility field name `payment_receipt` is subject to the gateway/live environment. The persisted field is `otc_trade_record.payment_receipt_file_key`. The Pay Inner path is `POST .../pay/order_set_paid` (commonly associated by `client_order_id`); the Inner path corresponding to this OpenAPI endpoint, `POST /order/paid`, still primarily uses `order_id`. If the gateway standardizes on the merchant order ID, follow the gateway documentation.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
OtcMarkOrderPaidRequestotcMarkOrderPaidRequest = newOtcMarkOrderPaidRequest(); // OtcMarkOrderPaidRequest | try {
OtcActionResponseresult = apiInstance.markOtcOrderPaid(otcMarkOrderPaidRequest);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#markOtcOrderPaid");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
otcMarkOrderPaidRequestOtcMarkOrderPaidRequest

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200The order has been marked as paid-

cancelOtcOrder

OtcActionResponse cancelOtcOrder(orderId)

Fiat order cancellation

Cancel fiat order

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcActionResponseresult = apiInstance.cancelOtcOrder(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#cancelOtcOrder");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcActionResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Order cancelled successfully-

listOtcOrders

OtcOrderListResponse listOtcOrders().type(type).fiatCurrency(fiatCurrency).cryptoCurrency(cryptoCurrency).startTime(startTime).endTime(endTime).status(status).pn(pn).ps(ps).execute();

Fiat order list

Query the fiat order list with filters such as type, currency, time range, and status

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
Stringtype = "type_example"; // String | BUY for on-ramp, SELL for off-rampStringfiatCurrency = "fiatCurrency_example"; // String | Fiat currencyStringcryptoCurrency = "cryptoCurrency_example"; // String | Digital currencyStringstartTime = "startTime_example"; // String | starttime for example : 2025-09-09StringendTime = "endTime_example"; // String | endtime for example :2025-09-09Stringstatus = "status_example"; // String | DONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursedStringpn = "pn_example"; // String | Page numberStringps = "ps_example"; // String | Number of items per pagetry {
OtcOrderListResponseresult = apiInstance.listOtcOrders()
.type(type)
.fiatCurrency(fiatCurrency)
.cryptoCurrency(cryptoCurrency)
.startTime(startTime)
.endTime(endTime)
.status(status)
.pn(pn)
.ps(ps)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listOtcOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
typeStringBUY for on-ramp, SELL for off-ramp[optional]
fiatCurrencyStringFiat currency[optional]
cryptoCurrencyStringDigital currency[optional]
startTimeStringstarttime for example : 2025-09-09[optional]
endTimeStringendtime for example :2025-09-09[optional]
statusStringDONE: completed CANCEL: canceled PROCESSING: in progress DISBURSED: disbursed[optional]
pnStringPage number[optional]
psStringNumber of items per page[optional]

Return type

OtcOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

listStableCoinOrders

OtcStableCoinOrderListResponse listStableCoinOrders().pageSize(pageSize).pageNumber(pageNumber).coinName(coinName).startTime(startTime).endTime(endTime).status(status).execute();

Stablecoin order list

Query stablecoin order list with filtering by currency, time range, status, etc.

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringpageSize = "10"; // String | Number of records per pageStringpageNumber = "1"; // String | Page numberStringcoinName = "USDT"; // String | ordercurrencyStringstartTime = "startTime_example"; // String | Start TimeStringendTime = "endTime_example"; // String | End timeStringstatus = "status_example"; // String | Status: PROCESSING: in progress / DONE:completed / FAILED: failedtry {
OtcStableCoinOrderListResponseresult = apiInstance.listStableCoinOrders()
.pageSize(pageSize)
.pageNumber(pageNumber)
.coinName(coinName)
.startTime(startTime)
.endTime(endTime)
.status(status)
.execute();
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#listStableCoinOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
pageSizeStringNumber of records per page[optional]
pageNumberStringPage number[optional]
coinNameStringordercurrency[optional]
startTimeStringStart Time[optional]
endTimeStringEnd time[optional]
statusStringStatus: PROCESSING: in progress / DONE:completed / FAILED: failed[optional]

Return type

OtcStableCoinOrderListResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-

getOtcOrderDetail

OtcOrderDetailResponse getOtcOrderDetail(orderId)

Fiat order details

Query fiat order details

Example

// Import classes:importio.gate.gateapi.ApiClient;
importio.gate.gateapi.ApiException;
importio.gate.gateapi.Configuration;
importio.gate.gateapi.GateApiException;
importio.gate.gateapi.auth.*;
importio.gate.gateapi.models.*;
importio.gate.gateapi.api.OtcApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.gateio.ws/api/v4");
// Configure APIv4 authorization: apiv4defaultClient.setApiKeySecret("YOUR_API_KEY", "YOUR_API_SECRET");
OtcApiapiInstance = newOtcApi(defaultClient);
StringorderId = "orderId_example"; // String | Order IDtry {
OtcOrderDetailResponseresult = apiInstance.getOtcOrderDetail(orderId);
System.out.println(result);
} catch (GateApiExceptione) {
System.err.println(String.format("Gate api exception, label: %s, message: %s", e.getErrorLabel(), e.getMessage()));
e.printStackTrace();
} catch (ApiExceptione) {
System.err.println("Exception when calling OtcApi#getOtcOrderDetail");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

NameTypeDescriptionNotes
orderIdStringOrder ID

Return type

OtcOrderDetailResponse

Authorization

apiv4

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Query successful-