code: def send_order(
              self,
              accounts,
              code='000001',
              price=9,
              amount=100,
              order_direction=ORDER_DIRECTION.BUY,
              order_model=ORDER_MODEL.LIMIT
      ):
          
          try:
              #print(code, price, amount)
              return self.call_post(
                  'orders',
                  {
                      'client': accounts,
                      "action": 'BUY' if order_direction == 1 else 'SELL',
                      "symbol": code,
                      "type": order_model,
                      "priceType": 0 if order_model == ORDER_MODEL.LIMIT else 4,
                      "price": price,
                      "amount": amount
                  }
              )
          except json.decoder.JSONDecodeError:
              print(RuntimeError('TRADE ERROR'))
              return None
docs: [summary]
  
          Arguments:
              accounts {[type]} -- [description]
              code {[type]} -- [description]
              price {[type]} -- [description]
              amount {[type]} -- [description]
  
          Keyword Arguments:
              order_direction {[type]} -- [description] (default: {ORDER_DIRECTION.BUY})
              order_model {[type]} -- [description] (default: {ORDER_MODEL.LIMIT})
  
  
  
          priceType 可选择： 上海交易所：
  
              0 - 限价委托
              4 - 五档即时成交剩余撤销
              6 - 五档即时成交剩余转限
  
          深圳交易所：
  
              0 - 限价委托
              1 - 对手方最优价格委托
              2 - 本方最优价格委托
              3 - 即时成交剩余撤销委托
              4 - 五档即时成交剩余撤销
              5 - 全额成交或撤销委托
  
          Returns:
              [type] -- [description]