Skip to content

Latest commit

 

History

History
135 lines (103 loc) · 4.09 KB

File metadata and controls

135 lines (103 loc) · 4.09 KB

IO.Swagger.Api.PorlApi

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

Method HTTP request Description
PorlGetNonce GET /porl/nonce Get your Proof of Reserves nonce and data.
PorlGetSnapshots GET /porl/snapshots Get Proof of Reserves historical snapshots

PorlGetNonce

Porl PorlGetNonce ()

Get your Proof of Reserves nonce and data.

Proof of Reserves Nonce This endpoint will return the nonce and associated data needed to validate BitMEX reserves data. <! TODO link to docs, GitHub, etc >

Example

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

namespace Example
{
    public class PorlGetNonceExample
    {
        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 PorlApi();

            try
            {
                // Get your Proof of Reserves nonce and data.
                Porl result = apiInstance.PorlGetNonce();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PorlApi.PorlGetNonce: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

Porl

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]

PorlGetSnapshots

List PorlGetSnapshots ()

Get Proof of Reserves historical snapshots

Example

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

namespace Example
{
    public class PorlGetSnapshotsExample
    {
        public void main()
        {
            var apiInstance = new PorlApi();

            try
            {
                // Get Proof of Reserves historical snapshots
                List&lt;XAny&gt; result = apiInstance.PorlGetSnapshots();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PorlApi.PorlGetSnapshots: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

No authorization required

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]