V2.2.1: Membership & Billing, USDT TRC20 payment, VIP free indicators, AI Trading Radar, simplified strategy creation, system settings simplification, bug fixes and UI improvements
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
const billingApi = {
|
||||
Plans: '/api/billing/plans',
|
||||
Purchase: '/api/billing/purchase',
|
||||
UsdtCreate: '/api/billing/usdt/create',
|
||||
UsdtOrder: (id) => `/api/billing/usdt/order/${id}`
|
||||
}
|
||||
|
||||
export function getMembershipPlans () {
|
||||
return request({
|
||||
url: billingApi.Plans,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function purchaseMembership (plan) {
|
||||
return request({
|
||||
url: billingApi.Purchase,
|
||||
method: 'post',
|
||||
data: { plan }
|
||||
})
|
||||
}
|
||||
|
||||
export function createUsdtOrder (plan) {
|
||||
return request({
|
||||
url: billingApi.UsdtCreate,
|
||||
method: 'post',
|
||||
data: { plan }
|
||||
})
|
||||
}
|
||||
|
||||
export function getUsdtOrder (orderId, refresh = true) {
|
||||
return request({
|
||||
url: billingApi.UsdtOrder(orderId),
|
||||
method: 'get',
|
||||
params: { refresh: refresh ? 1 : 0 }
|
||||
})
|
||||
}
|
||||
@@ -61,10 +61,11 @@ export function getMarketSentiment () {
|
||||
/**
|
||||
* Get trading opportunities based on technical analysis
|
||||
*/
|
||||
export function getTradingOpportunities () {
|
||||
export function getTradingOpportunities (params) {
|
||||
return request({
|
||||
url: `${BASE_URL}/opportunities`,
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user