Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 3.4 KB

UserAffiliatesApi.md

File metadata and controls

85 lines (66 loc) · 3.4 KB

IO.Swagger.Api.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 UserAffiliatesGet (double? depth = null, double? targetAccountId = null, double? selectUserId = null)

Get user's affiliates to a given depth

Example

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class UserAffiliatesGetExample
    {
        public void main()
        {
            // Configure API key authorization: apiExpires
            Configuration.Default.AddApiKey("api-expires", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("api-expires", "Bearer");
            // Configure API key authorization: apiKey
            Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
            // Configure API key authorization: apiSignature
            Configuration.Default.AddApiKey("api-signature", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.AddApiKeyPrefix("api-signature", "Bearer");

            var apiInstance = new UserAffiliatesApi();
            var depth = 1.2;  // double? | the depth of affiliates to return. Eg depth = 2 would return direct affiliates and their affiliates (optional) 
            var targetAccountId = 1.2;  // double? | AccountId of Sub-Affiliate Account (optional) 
            var selectUserId = 1.2;  // double? | User id of result array to keep (optional) 

            try
            {
                // Get user's affiliates to a given depth
                List<XAny> result = apiInstance.UserAffiliatesGet(depth, targetAccountId, selectUserId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserAffiliatesApi.UserAffiliatesGet: " + e.Message );
            }
        }
    }
}

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

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

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