Invalid params when using example #25
Comments
@adampointer maybe you wanna investigate in this. looks like something is broken or I am too stupid to get this working. |
Hi. There was an issue where I had not committed the example code for v3 and the code gen was broken. I have now pushed it up. The example works for me. Make sure you use |
hi,
do I have to regenerate the models? or would you generate them and push them into your repo so I can pull? |
Hi, You don't need to regenerate any models. This is an API error from Deribit. It is vague but generally it means you have used some incorrect combination of parameters like trying to open a position when reduce_only is true. One I get a lot is when placing a stop order with a stop_price which would cause it to trigger straight away. My advice is to try it in their API console. Also if you want, dump your parameters object in this thread and I will see if I can spot what you have got wrong. |
I used the exact copy of the privatebuy part in the example files. so I dont really understand where the problem is. |
I've finally found the issue. futures amount is in USD, not in BTC. ok. this particular error was a layer 8 problem :) thank you @adampointer |
when using for example: getprivatebuy() method, I get:
generating new models and methods doesnt work since it breaks the Exchange struct.
The text was updated successfully, but these errors were encountered: