111
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user