Skip to content

Conversation

@arvicco
Copy link
Contributor

@arvicco arvicco commented Mar 16, 2016

…, added type coercion to order params

check_params(params, %i{is_hidden is_postonly ocoorder buy_price_oco})

# for 'market' order, we need to pass a random positive price, not nil
price ||= rand(100) if type == "market" || type == "exchange market"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may just force price = 0.00001 for market orders

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it actually makes sense. I was following the API doc too literally. ;)

@prdn
Copy link
Contributor

prdn commented Mar 16, 2016

@arvicco thanks for all the great code you're pushing
Just a comment for you

@prdn
Copy link
Contributor

prdn commented Mar 17, 2016

Looks good

prdn added a commit that referenced this pull request Mar 17, 2016
Fixed all instances of calls silently dropping params
@prdn prdn merged commit 6fe217c into bitfinexcom:master Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants