code: def get_order_history(self, market=None):
          
          if market:
              return self._api_query(path_dict={
                  API_V1_1: '/account/getorderhistory',
                  API_V2_0: '/key/market/GetOrderHistory'
              }, options={'market': market, 'marketname': market}, protection=PROTECTION_PRV)
          else:
              return self._api_query(path_dict={
                  API_V1_1: '/account/getorderhistory',
                  API_V2_0: '/key/orders/getorderhistory'
              }, protection=PROTECTION_PRV)
docs: Used to retrieve order trade history of account
  
          Endpoint:
          1.1 /account/getorderhistory
          2.0 /key/orders/getorderhistory or /key/market/GetOrderHistory
  
          :param market: optional a string literal for the market (ie. BTC-LTC).
              If omitted, will return for all markets
          :type market: str
          :return: order history in JSON
          :rtype : dict