update pay ui
This commit is contained in:
@@ -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 - 股票代码
|
||||
|
||||
Reference in New Issue
Block a user