43 lines
1021 B
JavaScript
43 lines
1021 B
JavaScript
export async function delta_check(token, order_id) {
|
|
try {
|
|
var resp = await axios.post(URL + 'rv_px/delta_check', {
|
|
token: token,
|
|
order_id: order_id
|
|
});
|
|
if (resp.status != 200) {
|
|
return {
|
|
status: "ERR",
|
|
message: resp.statusText
|
|
};
|
|
}
|
|
let data = resp.data;
|
|
return data;
|
|
} catch(e) {
|
|
return {
|
|
status: "ERR",
|
|
message: e.message
|
|
};
|
|
}
|
|
}
|
|
|
|
export async function trend_analysis(token, order_id) {
|
|
try {
|
|
var resp = await axios.post(URL + 'rv_px/trend_analysis', {
|
|
token: token,
|
|
order_id: order_id
|
|
});
|
|
if (resp.status != 200) {
|
|
return {
|
|
status: "ERR",
|
|
message: resp.statusText
|
|
};
|
|
}
|
|
let data = resp.data;
|
|
return data;
|
|
} catch(e) {
|
|
return {
|
|
status: "ERR",
|
|
message: e.message
|
|
};
|
|
}
|
|
} |