Block Facts API

Asset

allAssets

List all assets

Get all assets that we support


/assets

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/assets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetApi;

import java.io.File;
import java.util.*;

public class AssetApiExample {

    public static void main(String[] args) {
        
        AssetApi apiInstance = new AssetApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetApi#allAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetApi;

public class AssetApiExample {

    public static void main(String[] args) {
        AssetApi apiInstance = new AssetApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetApi#allAssets");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

AssetApi *apiInstance = [[AssetApi alloc] init];

// List all assets
[apiInstance allAssetsWith:apiecoKey
              completionHandler: ^(array[inline_response_200] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.AssetApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allAssets(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class allAssetsExample
    {
        public void main()
        {
            
            var apiInstance = new AssetApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // List all assets
                array[inline_response_200] result = apiInstance.allAssets(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetApi.allAssets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AssetApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->allAssets($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetApi->allAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetApi;

my $api_instance = WWW::SwaggerClient::AssetApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allAssets(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetApi->allAssets: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AssetApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # List all assets
    api_response = api_instance.all_assets(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetApi->allAssets: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


singleAsset

Specific asset

Get specific asset by ticker ID


/assets/{ticker}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/assets/{ticker}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetApi;

import java.io.File;
import java.util.*;

public class AssetApiExample {

    public static void main(String[] args) {
        
        AssetApi apiInstance = new AssetApi();
        String apiecoKey = apiecoKey_example; // String | 
        String ticker = ticker_example; // String | BlockFacts asset ticker (e.g. BTC)
        try {
            inline_response_200 result = apiInstance.singleAsset(apiecoKey, ticker);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetApi#singleAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetApi;

public class AssetApiExample {

    public static void main(String[] args) {
        AssetApi apiInstance = new AssetApi();
        String apiecoKey = apiecoKey_example; // String | 
        String ticker = ticker_example; // String | BlockFacts asset ticker (e.g. BTC)
        try {
            inline_response_200 result = apiInstance.singleAsset(apiecoKey, ticker);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetApi#singleAsset");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *ticker = ticker_example; // BlockFacts asset ticker (e.g. BTC)

AssetApi *apiInstance = [[AssetApi alloc] init];

// Specific asset
[apiInstance singleAssetWith:apiecoKey
    ticker:ticker
              completionHandler: ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.AssetApi()

var apiecoKey = apiecoKey_example; // {String} 

var ticker = ticker_example; // {String} BlockFacts asset ticker (e.g. BTC)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.singleAsset(apiecoKey, ticker, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class singleAssetExample
    {
        public void main()
        {
            
            var apiInstance = new AssetApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var ticker = ticker_example;  // String | BlockFacts asset ticker (e.g. BTC)

            try
            {
                // Specific asset
                inline_response_200 result = apiInstance.singleAsset(apiecoKey, ticker);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetApi.singleAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AssetApi();
$apiecoKey = apiecoKey_example; // String | 
$ticker = ticker_example; // String | BlockFacts asset ticker (e.g. BTC)

try {
    $result = $api_instance->singleAsset($apiecoKey, $ticker);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetApi->singleAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetApi;

my $api_instance = WWW::SwaggerClient::AssetApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $ticker = ticker_example; # String | BlockFacts asset ticker (e.g. BTC)

eval { 
    my $result = $api_instance->singleAsset(apiecoKey => $apiecoKey, ticker => $ticker);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetApi->singleAsset: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AssetApi()
apiecoKey = apiecoKey_example # String | 
ticker = ticker_example # String | BlockFacts asset ticker (e.g. BTC)

try: 
    # Specific asset
    api_response = api_instance.single_asset(apiecoKey, ticker)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetApi->singleAsset: %s\n" % e)

Parameters

Path parameters
Name Description
ticker*
String
BlockFacts asset ticker (e.g. BTC)
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


BlockFacts

currentData

Current data

Get current normalization data for specific asset-denominator pair


/blockfacts/price

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/price?asset=&denominator="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        try {
            inline_response_200_2 result = apiInstance.currentData(apiecoKey, asset, denominator);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#currentData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        try {
            inline_response_200_2 result = apiInstance.currentData(apiecoKey, asset, denominator);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#currentData");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *asset = asset_example; // Asset ticker (e.g. BTC)
String *denominator = denominator_example; //  Denominator ticker (e.g. USD)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Current data
[apiInstance currentDataWith:apiecoKey
    asset:asset
    denominator:denominator
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var asset = asset_example; // {String} Asset ticker (e.g. BTC)

var denominator = denominator_example; // {String}  Denominator ticker (e.g. USD)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.currentData(apiecoKey, asset, denominator, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class currentDataExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var asset = asset_example;  // String | Asset ticker (e.g. BTC)
            var denominator = denominator_example;  // String |  Denominator ticker (e.g. USD)

            try
            {
                // Current data
                inline_response_200_2 result = apiInstance.currentData(apiecoKey, asset, denominator);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.currentData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$asset = asset_example; // String | Asset ticker (e.g. BTC)
$denominator = denominator_example; // String |  Denominator ticker (e.g. USD)

try {
    $result = $api_instance->currentData($apiecoKey, $asset, $denominator);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->currentData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $asset = asset_example; # String | Asset ticker (e.g. BTC)
my $denominator = denominator_example; # String |  Denominator ticker (e.g. USD)

eval { 
    my $result = $api_instance->currentData(apiecoKey => $apiecoKey, asset => $asset, denominator => $denominator);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->currentData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
asset = asset_example # String | Asset ticker (e.g. BTC)
denominator = denominator_example # String |  Denominator ticker (e.g. USD)

try: 
    # Current data
    api_response = api_instance.current_data(apiecoKey, asset, denominator)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->currentData: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
asset*
String
Asset ticker (e.g. BTC)
Required
denominator*
String
Denominator ticker (e.g. USD)
Required

Responses

Status: 200 - Successful


dataSnapshot

Data snapshot

Get last 600 BLOCKFACTS normalized prices for provided asset-denominator pairs


/blockfacts/price/snapshot

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/price/snapshot?asset=&denominator="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        try {
            inline_response_200_2 result = apiInstance.dataSnapshot(apiecoKey, asset, denominator);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#dataSnapshot");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        try {
            inline_response_200_2 result = apiInstance.dataSnapshot(apiecoKey, asset, denominator);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#dataSnapshot");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *asset = asset_example; // Asset ticker (e.g. BTC)
String *denominator = denominator_example; //  Denominator ticker (e.g. USD)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Data snapshot
[apiInstance dataSnapshotWith:apiecoKey
    asset:asset
    denominator:denominator
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var asset = asset_example; // {String} Asset ticker (e.g. BTC)

var denominator = denominator_example; // {String}  Denominator ticker (e.g. USD)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.dataSnapshot(apiecoKey, asset, denominator, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class dataSnapshotExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var asset = asset_example;  // String | Asset ticker (e.g. BTC)
            var denominator = denominator_example;  // String |  Denominator ticker (e.g. USD)

            try
            {
                // Data snapshot
                inline_response_200_2 result = apiInstance.dataSnapshot(apiecoKey, asset, denominator);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.dataSnapshot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$asset = asset_example; // String | Asset ticker (e.g. BTC)
$denominator = denominator_example; // String |  Denominator ticker (e.g. USD)

try {
    $result = $api_instance->dataSnapshot($apiecoKey, $asset, $denominator);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->dataSnapshot: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $asset = asset_example; # String | Asset ticker (e.g. BTC)
my $denominator = denominator_example; # String |  Denominator ticker (e.g. USD)

eval { 
    my $result = $api_instance->dataSnapshot(apiecoKey => $apiecoKey, asset => $asset, denominator => $denominator);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->dataSnapshot: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
asset = asset_example # String | Asset ticker (e.g. BTC)
denominator = denominator_example # String |  Denominator ticker (e.g. USD)

try: 
    # Data snapshot
    api_response = api_instance.data_snapshot(apiecoKey, asset, denominator)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->dataSnapshot: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
asset*
String
Asset ticker (e.g. BTC)
Required
denominator*
String
Denominator ticker (e.g. USD)
Required

Responses

Status: 200 - Successful


endOfDay

End of day data

Get normalized end of day data for specific asset-denominator


/blockfacts/price/endOfDay

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/price/endOfDay?asset=&denominator=&length="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String length = length_example; // String | Length (representing how many days back from the current day, Min = 0, Max = 100000)
        try {
            inline_response_200_5 result = apiInstance.endOfDay(apiecoKey, asset, denominator, length);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#endOfDay");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String length = length_example; // String | Length (representing how many days back from the current day, Min = 0, Max = 100000)
        try {
            inline_response_200_5 result = apiInstance.endOfDay(apiecoKey, asset, denominator, length);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#endOfDay");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *asset = asset_example; // Asset ticker (e.g. BTC)
String *denominator = denominator_example; //  Denominator ticker (e.g. USD)
String *length = length_example; // Length (representing how many days back from the current day, Min = 0, Max = 100000)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// End of day data
[apiInstance endOfDayWith:apiecoKey
    asset:asset
    denominator:denominator
    length:length
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var asset = asset_example; // {String} Asset ticker (e.g. BTC)

var denominator = denominator_example; // {String}  Denominator ticker (e.g. USD)

var length = length_example; // {String} Length (representing how many days back from the current day, Min = 0, Max = 100000)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.endOfDay(apiecoKey, asset, denominator, length, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class endOfDayExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var asset = asset_example;  // String | Asset ticker (e.g. BTC)
            var denominator = denominator_example;  // String |  Denominator ticker (e.g. USD)
            var length = length_example;  // String | Length (representing how many days back from the current day, Min = 0, Max = 100000)

            try
            {
                // End of day data
                inline_response_200_5 result = apiInstance.endOfDay(apiecoKey, asset, denominator, length);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.endOfDay: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$asset = asset_example; // String | Asset ticker (e.g. BTC)
$denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
$length = length_example; // String | Length (representing how many days back from the current day, Min = 0, Max = 100000)

try {
    $result = $api_instance->endOfDay($apiecoKey, $asset, $denominator, $length);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->endOfDay: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $asset = asset_example; # String | Asset ticker (e.g. BTC)
my $denominator = denominator_example; # String |  Denominator ticker (e.g. USD)
my $length = length_example; # String | Length (representing how many days back from the current day, Min = 0, Max = 100000)

eval { 
    my $result = $api_instance->endOfDay(apiecoKey => $apiecoKey, asset => $asset, denominator => $denominator, length => $length);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->endOfDay: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
asset = asset_example # String | Asset ticker (e.g. BTC)
denominator = denominator_example # String |  Denominator ticker (e.g. USD)
length = length_example # String | Length (representing how many days back from the current day, Min = 0, Max = 100000)

try: 
    # End of day data
    api_response = api_instance.end_of_day(apiecoKey, asset, denominator, length)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->endOfDay: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
asset*
String
Asset ticker (e.g. BTC)
Required
denominator*
String
Denominator ticker (e.g. USD)
Required
length*
String
Length (representing how many days back from the current day, Min = 0, Max = 100000)
Required

Responses

Status: 200 - Successful


exchangeNormalization

Exchanges in normalization

List exchanges that go into the normalization for specific asset-denominator pair


/blockfacts/normalization/whitelist/{pair}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/normalization/whitelist/{pair}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String pair = pair_example; // String |   Asset-denominator pair (e.g. BTC-USD)
        try {
            inline_response_200_1 result = apiInstance.exchangeNormalization(apiecoKey, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#exchangeNormalization");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String pair = pair_example; // String |   Asset-denominator pair (e.g. BTC-USD)
        try {
            inline_response_200_1 result = apiInstance.exchangeNormalization(apiecoKey, pair);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#exchangeNormalization");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *pair = pair_example; //   Asset-denominator pair (e.g. BTC-USD)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Exchanges in normalization
[apiInstance exchangeNormalizationWith:apiecoKey
    pair:pair
              completionHandler: ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var pair = pair_example; // {String}   Asset-denominator pair (e.g. BTC-USD)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.exchangeNormalization(apiecoKey, pair, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class exchangeNormalizationExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var pair = pair_example;  // String |   Asset-denominator pair (e.g. BTC-USD)

            try
            {
                // Exchanges in normalization
                inline_response_200_1 result = apiInstance.exchangeNormalization(apiecoKey, pair);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.exchangeNormalization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$pair = pair_example; // String |   Asset-denominator pair (e.g. BTC-USD)

try {
    $result = $api_instance->exchangeNormalization($apiecoKey, $pair);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->exchangeNormalization: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $pair = pair_example; # String |   Asset-denominator pair (e.g. BTC-USD)

eval { 
    my $result = $api_instance->exchangeNormalization(apiecoKey => $apiecoKey, pair => $pair);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->exchangeNormalization: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
pair = pair_example # String |   Asset-denominator pair (e.g. BTC-USD)

try: 
    # Exchanges in normalization
    api_response = api_instance.exchange_normalization(apiecoKey, pair)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->exchangeNormalization: %s\n" % e)

Parameters

Path parameters
Name Description
pair*
String
Asset-denominator pair (e.g. BTC-USD)
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


historicalData

Historical data

Get historical normalization data by asset-denominator, date, time and interval


/blockfacts/price/historical

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/price/historical?asset=&denominator=&date=&time=&interval=&page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String date = date_example; // String | Specific date (e.g. 2.9.2019)
        String time = time_example; // String | Specific time (e.g. 14:01:00)
        String interval = interval_example; // String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
        String page = page_example; // String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page
        try {
            inline_response_200_3 result = apiInstance.historicalData(apiecoKey, asset, denominator, date, time, interval, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#historicalData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String date = date_example; // String | Specific date (e.g. 2.9.2019)
        String time = time_example; // String | Specific time (e.g. 14:01:00)
        String interval = interval_example; // String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
        String page = page_example; // String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page
        try {
            inline_response_200_3 result = apiInstance.historicalData(apiecoKey, asset, denominator, date, time, interval, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#historicalData");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *asset = asset_example; // Asset ticker (e.g. BTC)
String *denominator = denominator_example; //  Denominator ticker (e.g. USD)
String *date = date_example; // Specific date (e.g. 2.9.2019)
String *time = time_example; // Specific time (e.g. 14:01:00)
String *interval = interval_example; // Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
String *page = page_example; //  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page (optional)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Historical data
[apiInstance historicalDataWith:apiecoKey
    asset:asset
    denominator:denominator
    date:date
    time:time
    interval:interval
    page:page
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var asset = asset_example; // {String} Asset ticker (e.g. BTC)

var denominator = denominator_example; // {String}  Denominator ticker (e.g. USD)

var date = date_example; // {String} Specific date (e.g. 2.9.2019)

var time = time_example; // {String} Specific time (e.g. 14:01:00)

var interval = interval_example; // {String} Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)

var opts = { 
  'page': page_example // {String}  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.historicalData(apiecoKey, asset, denominator, date, time, interval, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class historicalDataExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var asset = asset_example;  // String | Asset ticker (e.g. BTC)
            var denominator = denominator_example;  // String |  Denominator ticker (e.g. USD)
            var date = date_example;  // String | Specific date (e.g. 2.9.2019)
            var time = time_example;  // String | Specific time (e.g. 14:01:00)
            var interval = interval_example;  // String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
            var page = page_example;  // String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page (optional) 

            try
            {
                // Historical data
                inline_response_200_3 result = apiInstance.historicalData(apiecoKey, asset, denominator, date, time, interval, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.historicalData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$asset = asset_example; // String | Asset ticker (e.g. BTC)
$denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
$date = date_example; // String | Specific date (e.g. 2.9.2019)
$time = time_example; // String | Specific time (e.g. 14:01:00)
$interval = interval_example; // String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
$page = page_example; // String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page

try {
    $result = $api_instance->historicalData($apiecoKey, $asset, $denominator, $date, $time, $interval, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->historicalData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $asset = asset_example; # String | Asset ticker (e.g. BTC)
my $denominator = denominator_example; # String |  Denominator ticker (e.g. USD)
my $date = date_example; # String | Specific date (e.g. 2.9.2019)
my $time = time_example; # String | Specific time (e.g. 14:01:00)
my $interval = interval_example; # String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
my $page = page_example; # String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page

eval { 
    my $result = $api_instance->historicalData(apiecoKey => $apiecoKey, asset => $asset, denominator => $denominator, date => $date, time => $time, interval => $interval, page => $page);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->historicalData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
asset = asset_example # String | Asset ticker (e.g. BTC)
denominator = denominator_example # String |  Denominator ticker (e.g. USD)
date = date_example # String | Specific date (e.g. 2.9.2019)
time = time_example # String | Specific time (e.g. 14:01:00)
interval = interval_example # String | Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
page = page_example # String |  Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page (optional)

try: 
    # Historical data
    api_response = api_instance.historical_data(apiecoKey, asset, denominator, date, time, interval, page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->historicalData: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
asset*
String
Asset ticker (e.g. BTC)
Required
denominator*
String
Denominator ticker (e.g. USD)
Required
date*
String
Specific date (e.g. 2.9.2019)
Required
time*
String
Specific time (e.g. 14:01:00)
Required
interval*
String
Historical interval to cover (e.g. 20 = 14:01:00 - 14:21:00) (Min 0, Max 240)
Required
page
String
Optional, our API is always showing 100 results per page in order to improve the performance. You can provide the page parameter in order to query a specific page

Responses

Status: 200 - Successful


normalizationPairs

Normalization pairs

Get all running normalization pairs. Resulting in which asset-denominator pairs are currently being normalized inside our internal system.


/blockfacts/normalization/trades

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/normalization/trades"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_4] result = apiInstance.normalizationPairs(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#normalizationPairs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_4] result = apiInstance.normalizationPairs(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#normalizationPairs");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Normalization pairs
[apiInstance normalizationPairsWith:apiecoKey
              completionHandler: ^(array[inline_response_200_4] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.normalizationPairs(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class normalizationPairsExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // Normalization pairs
                array[inline_response_200_4] result = apiInstance.normalizationPairs(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.normalizationPairs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->normalizationPairs($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->normalizationPairs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->normalizationPairs(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->normalizationPairs: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # Normalization pairs
    api_response = api_instance.normalization_pairs(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->normalizationPairs: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


specificHistoricalData

Specific historical data

Get historical normalized price by specific point in time.


/blockfacts/price/specific

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/blockfacts/price/specific?asset=&denominator=&date=&time="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlockFactsApi;

import java.io.File;
import java.util.*;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String date = date_example; // String | Specific date (e.g. 2.9.2019)
        String time = time_example; // String | Specific time (e.g. 14:01:00)
        try {
            inline_response_200_2_BTCUSD result = apiInstance.specificHistoricalData(apiecoKey, asset, denominator, date, time);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#specificHistoricalData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.BlockFactsApi;

public class BlockFactsApiExample {

    public static void main(String[] args) {
        BlockFactsApi apiInstance = new BlockFactsApi();
        String apiecoKey = apiecoKey_example; // String | 
        String asset = asset_example; // String | Asset ticker (e.g. BTC)
        String denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
        String date = date_example; // String | Specific date (e.g. 2.9.2019)
        String time = time_example; // String | Specific time (e.g. 14:01:00)
        try {
            inline_response_200_2_BTCUSD result = apiInstance.specificHistoricalData(apiecoKey, asset, denominator, date, time);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlockFactsApi#specificHistoricalData");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *asset = asset_example; // Asset ticker (e.g. BTC)
String *denominator = denominator_example; //  Denominator ticker (e.g. USD)
String *date = date_example; // Specific date (e.g. 2.9.2019)
String *time = time_example; // Specific time (e.g. 14:01:00)

BlockFactsApi *apiInstance = [[BlockFactsApi alloc] init];

// Specific historical data
[apiInstance specificHistoricalDataWith:apiecoKey
    asset:asset
    denominator:denominator
    date:date
    time:time
              completionHandler: ^(inline_response_200_2_BTCUSD output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.BlockFactsApi()

var apiecoKey = apiecoKey_example; // {String} 

var asset = asset_example; // {String} Asset ticker (e.g. BTC)

var denominator = denominator_example; // {String}  Denominator ticker (e.g. USD)

var date = date_example; // {String} Specific date (e.g. 2.9.2019)

var time = time_example; // {String} Specific time (e.g. 14:01:00)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.specificHistoricalData(apiecoKey, asset, denominator, date, time, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class specificHistoricalDataExample
    {
        public void main()
        {
            
            var apiInstance = new BlockFactsApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var asset = asset_example;  // String | Asset ticker (e.g. BTC)
            var denominator = denominator_example;  // String |  Denominator ticker (e.g. USD)
            var date = date_example;  // String | Specific date (e.g. 2.9.2019)
            var time = time_example;  // String | Specific time (e.g. 14:01:00)

            try
            {
                // Specific historical data
                inline_response_200_2_BTCUSD result = apiInstance.specificHistoricalData(apiecoKey, asset, denominator, date, time);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BlockFactsApi.specificHistoricalData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\BlockFactsApi();
$apiecoKey = apiecoKey_example; // String | 
$asset = asset_example; // String | Asset ticker (e.g. BTC)
$denominator = denominator_example; // String |  Denominator ticker (e.g. USD)
$date = date_example; // String | Specific date (e.g. 2.9.2019)
$time = time_example; // String | Specific time (e.g. 14:01:00)

try {
    $result = $api_instance->specificHistoricalData($apiecoKey, $asset, $denominator, $date, $time);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BlockFactsApi->specificHistoricalData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlockFactsApi;

my $api_instance = WWW::SwaggerClient::BlockFactsApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $asset = asset_example; # String | Asset ticker (e.g. BTC)
my $denominator = denominator_example; # String |  Denominator ticker (e.g. USD)
my $date = date_example; # String | Specific date (e.g. 2.9.2019)
my $time = time_example; # String | Specific time (e.g. 14:01:00)

eval { 
    my $result = $api_instance->specificHistoricalData(apiecoKey => $apiecoKey, asset => $asset, denominator => $denominator, date => $date, time => $time);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlockFactsApi->specificHistoricalData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.BlockFactsApi()
apiecoKey = apiecoKey_example # String | 
asset = asset_example # String | Asset ticker (e.g. BTC)
denominator = denominator_example # String |  Denominator ticker (e.g. USD)
date = date_example # String | Specific date (e.g. 2.9.2019)
time = time_example # String | Specific time (e.g. 14:01:00)

try: 
    # Specific historical data
    api_response = api_instance.specific_historical_data(apiecoKey, asset, denominator, date, time)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockFactsApi->specificHistoricalData: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required
Query parameters
Name Description
asset*
String
Asset ticker (e.g. BTC)
Required
denominator*
String
Denominator ticker (e.g. USD)
Required
date*
String
Specific date (e.g. 2.9.2019)
Required
time*
String
Specific time (e.g. 14:01:00)
Required

Responses

Status: 200 - Successful


Exchange

allExchanges

All exchanges

List all exchanges


/exchanges

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/exchanges"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ExchangeApi;

import java.io.File;
import java.util.*;

public class ExchangeApiExample {

    public static void main(String[] args) {
        
        ExchangeApi apiInstance = new ExchangeApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_6] result = apiInstance.allExchanges(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExchangeApi#allExchanges");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ExchangeApi;

public class ExchangeApiExample {

    public static void main(String[] args) {
        ExchangeApi apiInstance = new ExchangeApi();
        String apiecoKey = apiecoKey_example; // String | 
        try {
            array[inline_response_200_6] result = apiInstance.allExchanges(apiecoKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExchangeApi#allExchanges");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 

ExchangeApi *apiInstance = [[ExchangeApi alloc] init];

// All exchanges
[apiInstance allExchangesWith:apiecoKey
              completionHandler: ^(array[inline_response_200_6] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.ExchangeApi()

var apiecoKey = apiecoKey_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allExchanges(apiecoKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class allExchangesExample
    {
        public void main()
        {
            
            var apiInstance = new ExchangeApi();
            var apiecoKey = apiecoKey_example;  // String | 

            try
            {
                // All exchanges
                array[inline_response_200_6] result = apiInstance.allExchanges(apiecoKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExchangeApi.allExchanges: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ExchangeApi();
$apiecoKey = apiecoKey_example; // String | 

try {
    $result = $api_instance->allExchanges($apiecoKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExchangeApi->allExchanges: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ExchangeApi;

my $api_instance = WWW::SwaggerClient::ExchangeApi->new();
my $apiecoKey = apiecoKey_example; # String | 

eval { 
    my $result = $api_instance->allExchanges(apiecoKey => $apiecoKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExchangeApi->allExchanges: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ExchangeApi()
apiecoKey = apiecoKey_example # String | 

try: 
    # All exchanges
    api_response = api_instance.all_exchanges(apiecoKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExchangeApi->allExchanges: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful


singleExchange

Specific exchange data

Get information about a specific exchange by its name. Returns information such as which assets are supported, asset ticker info, etc.


/exchanges/{name}

Usage and SDK Samples

curl -X GET "https://api.apieco.ir/block-facts/api/v1/exchanges/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ExchangeApi;

import java.io.File;
import java.util.*;

public class ExchangeApiExample {

    public static void main(String[] args) {
        
        ExchangeApi apiInstance = new ExchangeApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Name of the exchange (e.g. KRAKEN)
        try {
            inline_response_200_6 result = apiInstance.singleExchange(apiecoKey, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExchangeApi#singleExchange");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ExchangeApi;

public class ExchangeApiExample {

    public static void main(String[] args) {
        ExchangeApi apiInstance = new ExchangeApi();
        String apiecoKey = apiecoKey_example; // String | 
        String name = name_example; // String | Name of the exchange (e.g. KRAKEN)
        try {
            inline_response_200_6 result = apiInstance.singleExchange(apiecoKey, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExchangeApi#singleExchange");
            e.printStackTrace();
        }
    }
}
String *apiecoKey = apiecoKey_example; // 
String *name = name_example; // Name of the exchange (e.g. KRAKEN)

ExchangeApi *apiInstance = [[ExchangeApi alloc] init];

// Specific exchange data
[apiInstance singleExchangeWith:apiecoKey
    name:name
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var BlockFactsApi = require('block_facts_api');

var api = new BlockFactsApi.ExchangeApi()

var apiecoKey = apiecoKey_example; // {String} 

var name = name_example; // {String} Name of the exchange (e.g. KRAKEN)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.singleExchange(apiecoKey, name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class singleExchangeExample
    {
        public void main()
        {
            
            var apiInstance = new ExchangeApi();
            var apiecoKey = apiecoKey_example;  // String | 
            var name = name_example;  // String | Name of the exchange (e.g. KRAKEN)

            try
            {
                // Specific exchange data
                inline_response_200_6 result = apiInstance.singleExchange(apiecoKey, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ExchangeApi.singleExchange: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ExchangeApi();
$apiecoKey = apiecoKey_example; // String | 
$name = name_example; // String | Name of the exchange (e.g. KRAKEN)

try {
    $result = $api_instance->singleExchange($apiecoKey, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExchangeApi->singleExchange: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ExchangeApi;

my $api_instance = WWW::SwaggerClient::ExchangeApi->new();
my $apiecoKey = apiecoKey_example; # String | 
my $name = name_example; # String | Name of the exchange (e.g. KRAKEN)

eval { 
    my $result = $api_instance->singleExchange(apiecoKey => $apiecoKey, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExchangeApi->singleExchange: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ExchangeApi()
apiecoKey = apiecoKey_example # String | 
name = name_example # String | Name of the exchange (e.g. KRAKEN)

try: 
    # Specific exchange data
    api_response = api_instance.single_exchange(apiecoKey, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExchangeApi->singleExchange: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Name of the exchange (e.g. KRAKEN)
Required
Header parameters
Name Description
apieco-key*
String
Required

Responses

Status: 200 - Successful