Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.93 KB

UserAffiliatesApi.md

File metadata and controls

54 lines (38 loc) · 1.93 KB

UserAffiliatesApi

All URIs are relative to https://www.bitmex.com/api/v1

Method HTTP request Description
userAffiliatesGet GET /userAffiliates Get user's affiliates to a given depth

userAffiliatesGet

List<XAny> userAffiliatesGet(depth, targetAccountId, selectUserId)

Get user's affiliates to a given depth

Example

// Import classes:
//import io.swagger.client.api.UserAffiliatesApi;

UserAffiliatesApi apiInstance = new UserAffiliatesApi();
Double depth = 3.4D; // Double | the depth of affiliates to return. Eg depth = 2 would return direct affiliates and their affiliates
Double targetAccountId = 3.4D; // Double | AccountId of Sub-Affiliate Account
Double selectUserId = 3.4D; // Double | User id of result array to keep
try {
    List<XAny> result = apiInstance.userAffiliatesGet(depth, targetAccountId, selectUserId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserAffiliatesApi#userAffiliatesGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
depth Double the depth of affiliates to return. Eg depth = 2 would return direct affiliates and their affiliates [optional]
targetAccountId Double AccountId of Sub-Affiliate Account [optional]
selectUserId Double User id of result array to keep [optional]

Return type

List<XAny>

Authorization

apiExpires, apiKey, apiSignature

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript