code: def send_margin_order(self, acc_id, amount, symbol, _type, price=0):
          
  
          params = {
              'account-id': acc_id,
              'amount': amount,
              'symbol': symbol,
              'type': _type,
              'source': 'margin-api'
          }
          if price:
              params['price'] = price
  
          path = '/v1/order/orders/place'
  
          def _wrapper(_func):
              @wraps(_func)
              def handle():
                  _func(api_key_post(params, path))
  
              return handle
  
          return _wrapper
docs: 创建并执行借贷订单
          :param amount:
          :param symbol:
          :param _type: 可选值 {buy-market：市价买, sell-market：市价卖, buy-limit：限价买, sell-limit：限价卖}
          :param price:
          :return: