This commit is contained in:
sion
2026-04-23 00:44:39 +08:00
parent 685202dd55
commit 8047cfaa76
209 changed files with 2660 additions and 5560 deletions

View File

@@ -47,6 +47,13 @@ class FundService {
);
}
/// 提现前检查45天规则
Future<ApiResponse<Map<String, dynamic>>> withdrawCheck() async {
return _client.get<Map<String, dynamic>>(
ApiEndpoints.withdrawCheck,
);
}
/// 申請提現
Future<ApiResponse<Map<String, dynamic>>> withdraw({
required String amount,

View File

@@ -14,16 +14,21 @@ class TradeService {
required String coinCode,
required String price,
required String quantity,
int orderType = 1, // 1=市价单, 2=限价单
int orderType = 1,
String? tradeCode,
}) async {
final data = <String, dynamic>{
'coinCode': coinCode,
'price': price,
'quantity': quantity,
'orderType': orderType,
};
if (tradeCode != null && tradeCode.isNotEmpty) {
data['tradeCode'] = tradeCode;
}
return _client.post<Map<String, dynamic>>(
ApiEndpoints.buy,
data: {
'coinCode': coinCode,
'price': price,
'quantity': quantity,
'orderType': orderType,
},
data: data,
);
}
@@ -88,4 +93,9 @@ class TradeService {
data: {'orderNo': orderNo},
);
}
/// 獲取今日買入配額
Future<ApiResponse<Map<String, dynamic>>> getBuyQuota() async {
return _client.get<Map<String, dynamic>>(ApiEndpoints.buyQuota);
}
}