# Path: async_v20/endpoints/base.py
# class EndPoint(object):
#     """Base object representation of an endpoint"""
# 
#     # Default host to use unless otherwise specified by a derived class
#     host = 'REST'
# 
#     # Path needs to be a Path object
#     path = ()
# 
#     # the HTTP verb to use for this endpoint
#     method = ''
# 
#     # description of endpoint
#     description = ''
# 
#     # parameters required to send to endpoint
#     parameters = {}
# 
#     # valid responses
#     responses = {}
# 
#     # error msgs'
#     error = ()
# 
#     # json format the data body as per the response_schema below
#     request_schema = {}
# 
# HEADER = 'header'
# 
# PATH = 'path'
# 
# QUERY = 'query'


from .annotations import *
from .base import EndPoint, HEADER, PATH, QUERY
from ..definitions.primitives import *
from ..definitions.types import *

__all__ = ['GETInstrumentsCandles', 'GETInstrumentOrderBook', 'GETInstrumentsPositionBook']


class GETInstrumentsCandles(EndPoint):
    # the HTTP verb to use for this endpoint
    method = 'GET'

    # path to endpoint
    path = ('/v3/instruments/', InstrumentName, '/candles')

    # description of endpoint
    description = 'Fetch candlestick data for an instrument.'

    # parameters required to send to endpoint
    parameters = {Authorization: (HEADER, 'Authorization'), AcceptDatetimeFormat: (HEADER, 'Accept-Datetime-Format'),
                  InstrumentName: (PATH, 'instrument'), PriceComponent: (QUERY, 'price'),
                  CandlestickGranularity: (QUERY, 'granularity'), Count: (QUERY, 'count'), FromTime: (QUERY, 'from'),
                  ToTime: (QUERY, 'to'), Smooth: (QUERY, 'smooth'), IncludeFirstQuery: (QUERY, 'includeFirst'),

# Path: async_v20/endpoints/base.py
# class EndPoint(object):
#     """Base object representation of an endpoint"""
# 
#     # Default host to use unless otherwise specified by a derived class
#     host = 'REST'
# 
#     # Path needs to be a Path object
#     path = ()
# 
#     # the HTTP verb to use for this endpoint
#     method = ''
# 
#     # description of endpoint
#     description = ''
# 
#     # parameters required to send to endpoint
#     parameters = {}
# 
#     # valid responses
#     responses = {}
# 
#     # error msgs'
#     error = ()
# 
#     # json format the data body as per the response_schema below
#     request_schema = {}
# 
# HEADER = 'header'
# 
# PATH = 'path'
# 
# QUERY = 'query'


# Path: async_v20/endpoints/instrument.py
from .annotations import *
from .base import EndPoint, HEADER, PATH, QUERY
from ..definitions.primitives import *
from ..definitions.types import *


__all__ = ['GETInstrumentsCandles', 'GETInstrumentOrderBook', 'GETInstrumentsPositionBook']


class GETInstrumentsCandles(EndPoint):
    # the HTTP verb to use for this endpoint
    method = 'GET'

    # path to endpoint
    path = ('/v3/instruments/', InstrumentName, '/candles')

    # description of endpoint
    description = 'Fetch candlestick data for an instrument.'

    # parameters required to send to endpoint
    parameters = {Authorization: (HEADER, 'Authorization'), AcceptDatetimeFormat: (HEADER, 'Accept-Datetime-Format'),
                  InstrumentName: (PATH, 'instrument'), PriceComponent: (QUERY, 'price'),
                  CandlestickGranularity: (QUERY, 'granularity'), Count: (QUERY, 'count'), FromTime: (QUERY, 'from'),
                  ToTime: (QUERY, 'to'), Smooth: (QUERY, 'smooth'), IncludeFirstQuery: (QUERY, 'includeFirst'),

                  DailyAlignment: (QUERY, 'dailyAlignment'), AlignmentTimezone: (QUERY, 'alignmentTimezone'),