index.js 416 B

1234567891011121314151617
  1. import axios from '../../utils/axios';
  2. // 获取买卖挂单列表
  3. export function getBuySellList() {
  4. return axios.get(`/index/queryPendOrderList`);
  5. }
  6. // 股票买卖挂单
  7. export function addPendOrder(params) {
  8. return axios.post(`/tradeOrder/addPendOrder`, params);
  9. }
  10. // 查询用户可挂单数量(买/卖)
  11. export function queryAllowPendNum() {
  12. return axios.get(`/tradeOrder/queryAllowPendNum`);
  13. }