update pay ui

This commit is contained in:
2025-12-15 17:48:25 +08:00
parent 1ecd3e6d10
commit 710dc07582
4 changed files with 181 additions and 53 deletions

View File

@@ -65,6 +65,24 @@ export const marketService = {
return await apiRequest(url);
},
/**
* 批量获取多只股票的交易数据日K线
* @param {string[]} codes - 股票代码数组6位代码
* @param {number} days - 获取天数默认1
* @param {string} end_date - 截止日期
* @returns {Promise<{success: boolean, data: Object}>}
*/
getBatchTradeData: async (codes, days = 1, end_date = null) => {
const body = { codes, days };
if (end_date) {
body.end_date = end_date;
}
return await apiRequest('/api/market/trade/batch', {
method: 'POST',
body: JSON.stringify(body)
});
},
/**
* 获取融资融券数据
* @param {string} seccode - 股票代码