# coding: utf-8

"""
    Coinsecure Api Documentation

    To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guidelines</a>.<br>Programming Language Libraries for use can be accessed at <a href='https://api.coinsecure.in/v1/code-libraries'>https://api.coinsecure.in/v1/code-libraries</a>.

    OpenAPI spec version: beta
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""

from __future__ import absolute_import

import sys
import os
import re

# python 2 and python 3 compatibility library
from six import iteritems

from ..configuration import Configuration
from ..api_client import ApiClient


class ExchangeTradeDataApi(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    """

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeasklow_with_http_info(**kwargs)
            return data

    def v1exchangeasklow_with_http_info(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeasklow" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ask/low'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeaskorders" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangebidhigh(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidhigh_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangebidhigh_with_http_info(**kwargs)
            return data

    def v1exchangebidhigh_with_http_info(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangebidhigh" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/bid/high'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangebidorders(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidorders_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangebidorders_with_http_info(**kwargs)
            return data

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangebidorders" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data

    def v1exchangelast_trade_with_http_info(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangelast_trade" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/lastTrade'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='LastTradeDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangemax24_hr(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemax24_hr_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangemax24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemax24_hr_with_http_info(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangemax24_hr" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/max24Hr'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDiffDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangemin24_hr" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDiffDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangeticker(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeticker_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeticker_with_http_info(**kwargs)
            return data

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeticker" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='StandardTickerResultData',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskcancelled_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskcancelled" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskcompleted(self, authorization, **kwargs):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcompleted_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskcompleted_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskcompleted" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}', 'json')
        path_params = {}

        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskpending(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskpending_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskpending_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskpending" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskpending`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/pending'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidcancelled(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcancelled_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidcancelled_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidcancelled" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidcompleted(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcompleted_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidcompleted_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidcompleted" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidpending_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidpending" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidpending`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            (data) = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangetrades" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}

        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolTimeTypeDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

cb8f9fcc06767ebceb0329f2e937222c6733e2ab
<mask token>


class ExchangeTradeDataApi(object):
    <mask token>

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            data = self.v1exchangeasklow_with_http_info(**kwargs)
            return data
    <mask token>

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            data = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeaskorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>
    <mask token>
    <mask token>

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            data = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data
    <mask token>
    <mask token>
    <mask token>

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemin24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeticker"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'StandardTickerResultData', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept'
            ]
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>
    <mask token>
    <mask token>

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidpending"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidpending`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            data = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangetrades"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolTimeTypeDataResponse', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

<mask token>


class ExchangeTradeDataApi(object):
    <mask token>

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            data = self.v1exchangeasklow_with_http_info(**kwargs)
            return data
    <mask token>

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            data = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeaskorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangebidhigh(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidhigh_with_http_info(**kwargs)
        else:
            data = self.v1exchangebidhigh_with_http_info(**kwargs)
            return data

    def v1exchangebidhigh_with_http_info(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidhigh"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/high'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            data = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data

    def v1exchangelast_trade_with_http_info(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangelast_trade"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/lastTrade'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'LastTradeDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangemax24_hr(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemax24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemax24_hr_with_http_info(**kwargs)
            return data
    <mask token>

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemin24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangeticker(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeticker_with_http_info(**kwargs)
        else:
            data = self.v1exchangeticker_with_http_info(**kwargs)
            return data

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeticker"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'StandardTickerResultData', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept'
            ]
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskpending(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
            return data
    <mask token>

    def v1userexchangebidcancelled(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidcompleted(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidpending"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidpending`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            data = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangetrades"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolTimeTypeDataResponse', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

<mask token>


class ExchangeTradeDataApi(object):
    <mask token>

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            data = self.v1exchangeasklow_with_http_info(**kwargs)
            return data
    <mask token>

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            data = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeaskorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangebidhigh(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidhigh_with_http_info(**kwargs)
        else:
            data = self.v1exchangebidhigh_with_http_info(**kwargs)
            return data

    def v1exchangebidhigh_with_http_info(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidhigh"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/high'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            data = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data

    def v1exchangelast_trade_with_http_info(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangelast_trade"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/lastTrade'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'LastTradeDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangemax24_hr(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemax24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemax24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemax24_hr_with_http_info(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemax24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/max24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemin24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangeticker(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeticker_with_http_info(**kwargs)
        else:
            data = self.v1exchangeticker_with_http_info(**kwargs)
            return data

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeticker"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'StandardTickerResultData', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)
    <mask token>

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept'
            ]
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskpending(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
            return data
    <mask token>

    def v1userexchangebidcancelled(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidcompleted(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidpending"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidpending`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            data = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangetrades"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolTimeTypeDataResponse', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

<mask token>


class ExchangeTradeDataApi(object):
    <mask token>

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            data = self.v1exchangeasklow_with_http_info(**kwargs)
            return data
    <mask token>

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            data = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeaskorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangebidhigh(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidhigh_with_http_info(**kwargs)
        else:
            data = self.v1exchangebidhigh_with_http_info(**kwargs)
            return data

    def v1exchangebidhigh_with_http_info(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidhigh"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/high'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangebidorders(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidorders_with_http_info(**kwargs)
        else:
            data = self.v1exchangebidorders_with_http_info(**kwargs)
            return data

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangebidorders"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            data = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data

    def v1exchangelast_trade_with_http_info(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangelast_trade"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/lastTrade'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'LastTradeDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangemax24_hr(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemax24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemax24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemax24_hr_with_http_info(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemax24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/max24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            data = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangemin24_hr"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateDiffDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1exchangeticker(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeticker_with_http_info(**kwargs)
        else:
            data = self.v1exchangeticker_with_http_info(**kwargs)
            return data

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1exchangeticker"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'StandardTickerResultData', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangeaskcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskcompleted(self, authorization, **kwargs):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcompleted_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangeaskcompleted_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept'
            ]
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangeaskcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangeaskpending(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangeaskpending_with_http_info(authorization,
                **kwargs)
            return data
    <mask token>

    def v1userexchangebidcancelled(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcancelled_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs
        ):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcancelled"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidcompleted(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
        else:
            data = self.v1userexchangebidcompleted_with_http_info(authorization
                , **kwargs)
            return data

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs
        ):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidcompleted"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
        else:
            data = self.v1userexchangebidpending_with_http_info(authorization,
                **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangebidpending"
                     % key)
            params[key] = val
        del params['kwargs']
        if 'authorization' not in params or params['authorization'] is None:
            raise ValueError(
                'Missing the required parameter `authorization` when calling `v1userexchangebidpending`'
                )
        collection_formats = {}
        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}',
            'json')
        path_params = {}
        query_params = {}
        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'OrderDataResponse', auth_settings=auth_settings, callback=
            params.get('callback'), _return_http_data_only=params.get(
            '_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            data = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')
        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s' to method v1userexchangetrades"
                     % key)
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}
        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']
        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']
        form_params = []
        local_var_files = {}
        body_params = None
        header_params['Accept'] = self.api_client.select_header_accept([
            'application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']
        header_params['Content-Type'
            ] = self.api_client.select_header_content_type(['application/json']
            )
        auth_settings = []
        return self.api_client.call_api(resource_path, 'GET', path_params,
            query_params, header_params, body=body_params, post_params=
            form_params, files=local_var_files, response_type=
            'RateVolTimeTypeDataResponse', auth_settings=auth_settings,
            callback=params.get('callback'), _return_http_data_only=params.
            get('_return_http_data_only'), _preload_content=params.get(
            '_preload_content', True), _request_timeout=params.get(
            '_request_timeout'), collection_formats=collection_formats)

# coding: utf-8

"""
    Coinsecure Api Documentation

    To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guidelines</a>.<br>Programming Language Libraries for use can be accessed at <a href='https://api.coinsecure.in/v1/code-libraries'>https://api.coinsecure.in/v1/code-libraries</a>.

    OpenAPI spec version: beta
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""

from __future__ import absolute_import

import sys
import os
import re

# python 2 and python 3 compatibility library
from six import iteritems

from ..configuration import Configuration
from ..api_client import ApiClient


class ExchangeTradeDataApi(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    """

    def __init__(self, api_client=None):
        config = Configuration()
        if api_client:
            self.api_client = api_client
        else:
            if not config.api_client:
                config.api_client = ApiClient()
            self.api_client = config.api_client

    def v1exchangeasklow(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeasklow_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeasklow_with_http_info(**kwargs)
            return data

    def v1exchangeasklow_with_http_info(self, **kwargs):
        """
        Lowest Ask
        Returns the Lowest Ask Rate in Json. The Amount is in Paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeasklow_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeasklow" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ask/low'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangeaskorders(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeaskorders_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeaskorders_with_http_info(**kwargs)
            return data

    def v1exchangeaskorders_with_http_info(self, **kwargs):
        """
        All Sell Orders
        Returns all Ask Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeaskorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeaskorders" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ask/orders'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangebidhigh(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidhigh_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangebidhigh_with_http_info(**kwargs)
            return data

    def v1exchangebidhigh_with_http_info(self, **kwargs):
        """
        Returns the Highest Bid in the Order Book
        Highest Bid.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidhigh_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangebidhigh" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/bid/high'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangebidorders(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangebidorders_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangebidorders_with_http_info(**kwargs)
            return data

    def v1exchangebidorders_with_http_info(self, **kwargs):
        """
        All Buy Orders
        Returns all Bid Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangebidorders_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangebidorders" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/bid/orders'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangelast_trade(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangelast_trade_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangelast_trade_with_http_info(**kwargs)
            return data

    def v1exchangelast_trade_with_http_info(self, **kwargs):
        """
        Last Trade
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangelast_trade_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: LastTradeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangelast_trade" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/lastTrade'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='LastTradeDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangemax24_hr(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemax24_hr_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangemax24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemax24_hr_with_http_info(self, **kwargs):
        """
        Max 24 Hour Rate
        Returns the highest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemax24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangemax24_hr" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/max24Hr'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDiffDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangemin24_hr(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangemin24_hr_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangemin24_hr_with_http_info(**kwargs)
            return data

    def v1exchangemin24_hr_with_http_info(self, **kwargs):
        """
        Min 24 Hour Rate
        Returns the lowest rate over the last 24 hours with the 10 minutely difference. The values are in paisa.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangemin24_hr_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateDiffDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangemin24_hr" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/min24Hr'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateDiffDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1exchangeticker(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1exchangeticker_with_http_info(**kwargs)
        else:
            (data) = self.v1exchangeticker_with_http_info(**kwargs)
            return data

    def v1exchangeticker_with_http_info(self, **kwargs):
        """
        Exchange Ticker
        Returns a summary of data from the Exchange.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1exchangeticker_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: StandardTickerResultData
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1exchangeticker" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/ticker'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='StandardTickerResultData',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskcancelled(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcancelled_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskcancelled_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskcancelled_with_http_info(self, authorization, **kwargs):
        """
        Cancelled User Sell Orders
        Returns all Cancelled User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskcancelled" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskcancelled`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/cancelled'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskcompleted(self, authorization, **kwargs):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskcompleted_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskcompleted_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskcompleted_with_http_info(self, authorization, **kwargs):
        """
        Completed User Sell Orders
        Returns all completed Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', '_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskcompleted" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskcompleted`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/completed'.replace('{format}', 'json')
        path_params = {}

        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangeaskpending(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangeaskpending_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangeaskpending_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangeaskpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Sell Orders
        Returns all Open User Sell Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangeaskpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangeaskpending" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangeaskpending`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/ask/pending'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidcancelled(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcancelled_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidcancelled_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidcancelled_with_http_info(self, authorization, **kwargs):
        """
        Cancelled User Buy Orders
        Returns all Cancelled User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcancelled_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidcancelled" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidcancelled`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/cancelled'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidcompleted(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidcompleted_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidcompleted_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidcompleted_with_http_info(self, authorization, **kwargs):
        """
        Completed User Buy Orders
        Returns all completed Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidcompleted_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidcompleted" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidcompleted`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/completed'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangebidpending(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangebidpending_with_http_info(authorization, **kwargs)
        else:
            (data) = self.v1userexchangebidpending_with_http_info(authorization, **kwargs)
            return data

    def v1userexchangebidpending_with_http_info(self, authorization, **kwargs):
        """
        Pending User Buy Orders
        Returns all Open User Buy Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangebidpending_with_http_info(authorization, callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param str authorization: API object to be added (required)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: OrderDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['authorization', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangebidpending" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'authorization' is set
        if ('authorization' not in params) or (params['authorization'] is None):
            raise ValueError("Missing the required parameter `authorization` when calling `v1userexchangebidpending`")


        collection_formats = {}

        resource_path = '/v1/user/exchange/bid/pending'.replace('{format}', 'json')
        path_params = {}

        query_params = {}

        header_params = {}
        if 'authorization' in params:
            header_params['Authorization'] = params['authorization']
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='OrderDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)

    def v1userexchangetrades(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('callback'):
            return self.v1userexchangetrades_with_http_info(**kwargs)
        else:
            (data) = self.v1userexchangetrades_with_http_info(**kwargs)
            return data

    def v1userexchangetrades_with_http_info(self, **kwargs):
        """
        Completed Exchange Trades
        Returns all completed Orders in Json. The Rate is displayed in Paisa and Volume in Satoshis.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please define a `callback` function
        to be invoked when receiving the response.
        >>> def callback_function(response):
        >>>     pprint(response)
        >>>
        >>> thread = api.v1userexchangetrades_with_http_info(callback=callback_function)

        :param callback function: The callback function
            for asynchronous request. (optional)
        :param int _from: From date in Epoch, defaults to 0 if invalid input or greater than current time. (Optional)
        :param int to: To Date in Epoch, defaults to current time if invalid input or greater than current time. (Optional)
        :param int max: Max defaults to 10 if invalid input and defaults to 100 if greater than 100. (Optional)
        :param int offset: Offset defaults to 0 if input is invalid. (Optional)
        :param str accept: JSON, XML or CSV can be returned (Optional)
        :return: RateVolTimeTypeDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['_from', 'to', 'max', 'offset', 'accept']
        all_params.append('callback')
        all_params.append('_return_http_data_only')
        all_params.append('_preload_content')
        all_params.append('_request_timeout')

        params = locals()
        for key, val in iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method v1userexchangetrades" % key
                )
            params[key] = val
        del params['kwargs']


        collection_formats = {}

        resource_path = '/v1/exchange/trades'.replace('{format}', 'json')
        path_params = {}

        query_params = {}
        if '_from' in params:
            query_params['from'] = params['_from']
        if 'to' in params:
            query_params['to'] = params['to']
        if 'max' in params:
            query_params['max'] = params['max']
        if 'offset' in params:
            query_params['offset'] = params['offset']

        header_params = {}
        if 'accept' in params:
            header_params['accept'] = params['accept']

        form_params = []
        local_var_files = {}

        body_params = None

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.\
            select_header_accept(['application/json', 'application/xml', 'application/csv'])
        if not header_params['Accept']:
            del header_params['Accept']

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.\
            select_header_content_type(['application/json'])

        # Authentication setting
        auth_settings = []

        return self.api_client.call_api(resource_path, 'GET',
                                            path_params,
                                            query_params,
                                            header_params,
                                            body=body_params,
                                            post_params=form_params,
                                            files=local_var_files,
                                            response_type='RateVolTimeTypeDataResponse',
                                            auth_settings=auth_settings,
                                            callback=params.get('callback'),
                                            _return_http_data_only=params.get('_return_http_data_only'),
                                            _preload_content=params.get('_preload_content', True),
                                            _request_timeout=params.get('_request_timeout'),
                                            collection_formats=collection_formats)
