Skip to content

change to new_orders to allow all the options #29

Description

@treidio

so if you want to do an oco order, you can get the parameters from the doco and add them in, otherwise pass {} as additional params.

:)

Bitfinex.prototype.new_order = function(symbol, amount, price, exchange, side, type, additional_params, cb) {
var params;
params = {
symbol: symbol,
amount: amount,
price: price,
exchange: exchange,
side: side,
type: type
};
if (typeof additional_params === 'function') {
cb = additional_params;
}else {
for (var key in additional_params) params[key] = additional_params[key];
}
return this.make_request('order/new', params, cb);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions