lduchosal / iconomi-api-dotnet

Iconomi Api dotnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IconomiApi - the C# library for the Iconomi API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.3
  • SDK version: 1.3
  • Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen

Frameworks supported

  • .NET Core >=1.0
  • .NET Framework >=4.6
  • Mono/Xamarin >=vNext
  • UWP >=10.0

Dependencies

  • FubarCoder.RestSharp.Portable.Core >=4.0.7
  • FubarCoder.RestSharp.Portable.HttpClient >=4.0.7
  • Newtonsoft.Json >=10.0.3

Installation

Generate the DLL using your preferred tool

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using IconomiApi.Api;
using IconomiApi.Client;
using IconomiApi.Model;

Getting Started

using System;
using System.Diagnostics;
using IconomiApi.Api;
using IconomiApi.Client;
using IconomiApi.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            var apiInstance = new AssetApi();
            var ticker = ticker_example;  // string | 

            try
            {
                // Asset details
                AssetInfo result = apiInstance.AssetDetails(ticker);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetApi.AssetDetails: " + e.Message );
            }
        }
    }
}
using System;
using System.Diagnostics;
using IconomiApi.Api;
using IconomiApi.Client;
using IconomiApi.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {

            string API_KEY = "API_KEY";
            string API_SECRET = "API_SECRET";

            var users = new UserApi();
            
            users.Configuration.ApiClient.SetAuthentication(API_KEY, API_SECRET, API_DEBUG);
            users.Configuration.ApiClient.RestClient.Timeout = TimeSpan.FromSeconds(5);

            try
            {
                var result = users.GetUserBalance();
                var j = JsonConvert.SerializeObject(result);
                Console.WriteLine(j);
            }
            catch (ApiException e)
            {
                Console.WriteLine(e.ErrorCode);
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.iconomi.com

Class Method HTTP request Description
AssetApi AssetDetails GET /v1/assets/{ticker} Asset details
AssetApi AssetHistory GET /v1/assets/{ticker}/pricehistory Historical information
AssetApi AssetList GET /v1/assets List of Assets
AssetApi AssetStatistics GET /v1/assets/{ticker}/statistics Statistics
AssetApi AssetTicker GET /v1/assets/{ticker}/price Current ticker
StrategiesApi Charts GET /v1/strategies/{ticker}/pricehistory Historical information
StrategiesApi DaaBalance GET /v1/strategies/{ticker}/balance Balance
StrategiesApi DaaPrice GET /v1/strategies/{ticker}/price Current ticker
StrategiesApi GetStatistics GET /v1/strategies/{ticker}/statistics Statistics
StrategiesApi Info GET /v1/strategies/{ticker} Strategy details
StrategiesApi StrategyList GET /v1/strategies List of Strategies
StrategiesApi Structure GET /v1/strategies/{ticker}/structure Structure
StrategiesApi SubmitStructure POST /v1/strategies/{ticker}/structure Structure
TradingApi CancelOrder DELETE /v1/order/{orderId} Delete
TradingApi ConfirmOffer POST /v1/order/offer/{offerId}/confirm Confirm trade offer
TradingApi GetAllOrders GET /v1/order/orders List of orders
TradingApi OrderOffer POST /v1/order/offer Trade offer
TradingApi OrderTrade POST /v1/order Place order
TradingApi Status GET /v1/order/{orderId} Logical order
UserApi GetActivities GET /v1/user/activity Activity
UserApi GetDepositAddress GET /v1/user/deposit/{currency} Deposit
UserApi GetUserBalance GET /v1/user/balance User Balance
UserApi TransactionInfo GET /v1/user/transaction/{transactionId} Transaction
UserApi Withdraw POST /v1/user/withdraw Withdraw

Documentation for Models

Documentation for Authorization

ApiKey

  • Type: API key
  • API key parameter name: ICN-API-KEY
  • Location: HTTP header

ApiSign

  • Type: API key
  • API key parameter name: ICN-SIGN
  • Location: HTTP header

ApiTimestamp

  • Type: API key
  • API key parameter name: ICN-TIMESTAMP
  • Location: HTTP header

About

Iconomi Api dotnet

License:BSD 2-Clause "Simplified" License


Languages

Language:C# 99.7%Language:Shell 0.3%