Skip to content

Commit

Permalink
commit for sendorder/ cancel_order
Browse files Browse the repository at this point in the history
  • Loading branch information
yutiansut committed Dec 9, 2019
1 parent fe963fd commit b32eb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fn main() {
"query_settlement" => {
let qsettlementmsg = ReqQuerySettlement{
aid: "qry_settlement_info".to_string(),
trading_day: resx["trading_day"].as_i32().unwrap()
trading_day: resx["trading_day"].as_i64().unwrap()
};
let b = serde_json::to_string(&qsettlementmsg).unwrap();
println!("Pretend to send QuerySettlement {:?}", b);
Expand Down
2 changes: 1 addition & 1 deletion src/qawebsocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub struct ReqQueryBank {
#[derive(Serialize, Deserialize, Debug)]
pub struct ReqQuerySettlement {
pub aid: String,
pub trading_day: i32
pub trading_day: i64
}


Expand Down

0 comments on commit b32eb9e

Please sign in to comment.