daroczig / binancer

An R client to the Public Rest API for Binance.
https://daroczig.github.io/binancer
53 stars 57 forks source link

new order problem (everything seems fine but order does not exist) #18

Closed pablosanchezmart closed 3 years ago

pablosanchezmart commented 3 years ago

Hi,

I have a problem when placing a new order. This is the code I am using:

binance_new_order(symbol = "ADABUSD", side = ("SELL"), quantity = 10, price = curr_price, type = "LIMIT", time_in_force = "GTC")

I get that:

TEST ord 1: OK

So it looks like it worked. However, when I look at my "open orders" by using:

binance_all_orders("ADABUSD")

I get that:

Null data.table (0 rows and 0 cols)

So, it looks like the order do not exist. It do not appear in my "Open orders" in binance. The API is connected as shown by binance_ping(), so I am probably missing something here.

Any help will be very welcome! Thank you in advance.

pablosanchezmart commented 3 years ago

My fault, I had test = T, and it shoud be test = F in order to really send the new order. Great job with the package!