Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.
This repository was archived by the owner on May 1, 2018. It is now read-only.

TradeBuy conditions are not in effect  #144

@Shafayat

Description

@Shafayat

When I place an order using tradebuy() no matter what value I provide for TimeInEffect the order is immediately cancelled (if price not matched)

Here is the code

bittrex.tradebuy({
                    MarketName: `BTC-${coin}`,
                    OrderType: 'LIMIT',
                    Quantity: res,
                    Rate: entrada,
                    TimeInEffect: 'GOOD_TIL_CANCELLED', // supported options are 'IMMEDIATE_OR_CANCEL', 'GOOD_TIL_CANCELLED', 'FILL_OR_KILL'
                    ConditionType: 'NONE', // supported options are 'NONE', 'GREATER_THAN', 'LESS_THAN'
                    Target: 0, // used in conjunction with ConditionType
                }, function (data, err) {
                    if (err) console.log(err);
                    else if (data.success && data.result.OrderId) {
                        console.log(data);
                    } else {
                    }
                });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions