HellAmbro / Trading212API

Unofficial Trading212 API
MIT License
57 stars 27 forks source link

execute_value_order returns {'code': 'InternalError'} #22

Closed LucyBarron closed 1 year ago

HellAmbro commented 1 year ago

Hi, can i have more information about this problem? It seems that you forgot to pass some mandatory value in the request. I need to see your code to spot the error.

LucyBarron commented 1 year ago

My code is the same as your example code but using 'TSLA'. Apologies, I should have said this.

value_buy_order = trading212.execute_value_order(
    ValueOrder('TSLA', value=200))

I have just tried using 'TSLA_US_EQ' instead and that seems to work.