@@ -19,6 +19,7 @@ class Quoine(object):
1919 API_URL = 'https://api.quoine.com'
2020 API_VERSION = '2'
2121 VENDOR_ID = None
22+ AMAZON_API_KEY = None
2223 LANGUAGE = 'en'
2324
2425 SIDE_BUY = 'buy'
@@ -43,7 +44,7 @@ class Quoine(object):
4344 MARGIN_ORDER_DIRECTION_TWO = 'two_direction'
4445 MARGIN_ORDER_DIRECTION_NET = 'netout'
4546
46- def __init__ (self , api_token_id , api_secret , vendor_id = None , language = None ):
47+ def __init__ (self , api_token_id , api_secret , vendor_id = None , language = None , amazon_api_key = None ):
4748 """Quoine API Client constructor
4849
4950 :param api_token_id: Api Token Id
@@ -54,6 +55,8 @@ def __init__(self, api_token_id, api_secret, vendor_id=None, language=None):
5455 :type vendor_id: str.
5556 :param language: Langague optional
5657 :type language: str.
58+ :param amazon_api_key: Amazon api key optional
59+ :type amazon_api_key: str.
5760
5861 """
5962
@@ -63,6 +66,8 @@ def __init__(self, api_token_id, api_secret, vendor_id=None, language=None):
6366 self .VENDOR_ID = vendor_id
6467 if language :
6568 self .LANGUAGE = language
69+ if amazon_api_key :
70+ self .AMAZON_API_KEY = amazon_api_key
6671 self .session = self ._init_session ()
6772
6873 def _init_session (self ):
@@ -75,6 +80,8 @@ def _init_session(self):
7580 'Accept-Language' : self .LANGUAGE }
7681 if self .VENDOR_ID :
7782 headers ['X-Quoine-Vendor-ID' ] = self .VENDOR_ID
83+ if self .AMAZON_API_KEY :
84+ headers ['x-api-key' ] = self .AMAZON_API_KEY
7885 session .headers .update (headers )
7986 return session
8087
@@ -1942,3 +1949,7 @@ class Quoinex(Quoine):
19421949
19431950class Qryptos (Quoinex ):
19441951 API_URL = 'https://api.qryptos.com'
1952+
1953+
1954+ class Liquid (Quoinex ):
1955+ API_URL = 'https://api.liquid.com'
0 commit comments