Skip to content

Commit

Permalink
add params to POST params for bitstamp
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Dec 23, 2017
1 parent 1e47059 commit ed65ffa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bitstamp/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ impl BitstampApi {
post_params.insert("key", &copy_api_key);
post_params.insert("signature", &signature);
post_params.insert("nonce", &nonce);

// copy params into post_params .... bit of a hack but will do for now
params.iter().for_each(|(k,v)| {
post_params.insert(k,v);
});

helpers::strip_empties(&mut post_params);
let post_data = helpers::url_encode_hashmap(post_params);
let mut response = self.http_client
Expand Down

0 comments on commit ed65ffa

Please sign in to comment.