You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let params = GetC2CTradeHistoryParams::builder().start_time(1623319461670).end_time(1641782889000).page(1).recv_window(5000).build().unwrap();
239
+
let params = GetC2CTradeHistoryParams::builder().trade_type("trade_type_example".to_string()).start_time(1623319461670).end_time(1641782889000).page(1).rows(100).recv_window(5000).build().unwrap();
220
240
221
241
let resp_json:Value = serde_json::from_str(r#"{"code":"000000","message":"success","data":[{"orderNumber":"20219644646554779648","advNo":"11218246497340923904","tradeType":"SELL","asset":"BUSD","fiat":"CNY","fiatSymbol":"¥","amount":"5000.00000000","totalPrice":"33400.00000000","unitPrice":"6.68","orderStatus":"COMPLETED","createTime":1619361369000,"commission":"0","counterPartNickName":"ab***","advertisementRole":"TAKER"}],"total":1,"success":true}"#).unwrap();
222
242
let expected_response : models::GetC2CTradeHistoryResponse = serde_json::from_value(resp_json.clone()).expect("should parse into models::GetC2CTradeHistoryResponse");
0 commit comments