Skip to content

Commit

Permalink
add WithdrawStatus API call
Browse files Browse the repository at this point in the history
  • Loading branch information
keo committed Jul 18, 2016
1 parent 335b274 commit 8269aae
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/kraken_ruby/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def deposit_status(opts={})
post_private 'DepositStatus', opts
end

def withdraw_status(opts={})
post_private 'WithdrawStatus', opts
end

#### Private User Trading ####

def add_order(opts={})
Expand Down
18 changes: 17 additions & 1 deletion spec/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@
expect(result).to have_key 'time'
end
end
end

it "gets withdraw status" do
results = kraken.withdraw_status(asset: "XXBT")
pp results
expect(results).to be_instance_of(Array)
if result = results.first
expect(result).to have_key 'method'
expect(result).to have_key 'aclass'
expect(result).to have_key 'refid'
expect(result).to have_key 'txid'
expect(result).to have_key 'info'
expect(result).to have_key 'amount'
expect(result).to have_key 'fee'
expect(result).to have_key 'status'
expect(result).to have_key 'time'
end
end
end
end

0 comments on commit 8269aae

Please sign in to comment.