Skip to content

Commit

Permalink
Merge pull request #57 from andygrove/bitstamp_post_param_hack
Browse files Browse the repository at this point in the history
add params to POST params for bitstamp
  • Loading branch information
hugues31 authored Dec 23, 2017
2 parents 5b55655 + ed65ffa commit 794a857
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 794a857

Please sign in to comment.