JKorf / FTX.Net

MIT License
31 stars 24 forks source link

Fix FTX.US authentication headers #11

Closed arkoc closed 2 years ago

arkoc commented 2 years ago

Based on: https://docs.ftx.us/?csharp#authentication Authentication headers are different from ftx.com.

The fix is not the nicest one, it simply verifies what endpoint was set in client options and based on that decides headers. As far as these crypto exchanges are not going to open a new domain for each country and as far as it remains the US and remaining world, I think the fix is fine.

There was also one issue for https://docs.ftx.us/?csharp#create-order CreateOrder throws an error that allowTip is an unknown parameter. So I changed it to allowTips and it worked. But it seems this value is not going to their server. But at least the main functionally is working.