Skip to content

Error using binance_all_orders() #33

Description

@jvaccaro2

Hi,

I've encountered a problem using binance_all_orders() function, where when using a specific symbol I get the following error:

"Error in rbindlist(ord) :
Item 20 has 22 columns, inconsistent with item 1 which has 20 columns. To fill missing columns use fill=TRUE."

Upon debuging the function the problem appears to be that within the function when queriyng all orders using "binance_query(endpoint = "api/v3/allOrders", params = params, sign = TRUE)" which returns a nested list with all orders. The orders of type "TAKE_PROFIT_LIMIT" has 22 items as oposed to the 20 items of the rest of the orders.

Using fill = TRUE in the rbindlist() within the function appears to fix the problem just fine if the desired behaviour is to add the 2 aditional columns to the data.frame (will be NULL in all orders except on the "TAKE_PROFIT_LIMIT")

Cheers!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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