Trying to transfer funds from SPOT to ISOLATED_MARGIN

I am trying to transfer fudns from spot to isolate margin using following api request →

I have USDT in spot and want to transfer in to btcusdt

https://api.binance.com//sapi/v1/margin/isolated/transfer?symbol=BTCUSDT&asset=USDT&transFrom=SPOT&transTo=ISOLATED_MARGIN&amount=15&timestamp=1643195115001&signature=signature_goes_here

and Response is →

{‘code’: -1000, ‘msg’: ‘An unknown error occurred while processing the request.’}

Any help what am I doing wrong ?

You seem to have a double forward slash (/) in the start of your path. Please retry with this amendment.

1 Like

Omg thank you , that was a silly mistake.
However I changed it to -

https://api.binance.com/sapi/v1/margin/isolated/transfer?symbol=BTCUSDT&asset=USDT&transFrom=SPOT&transTo=ISOLATED_MARGIN&amount=15&timestamp=1643203155001&signature=the_signature_here

but still getting same error…

Are you accessing Binance Services from a restricted region? Some products may not be accessible in certain countries, I suggest having a look at the terms of use to confirm this is not the case.

https://www.binance.com/en/terms

1 Like

I will check that , but I was able to get a successful response for following API to fetch margin data →

https://api.binance.com/sapi/v1/margin/isolatedMarginData

So my app is running on a cloud , whose servers are in the US.

US IPs cannot use Binance.com services. Please use Binance.us or access Binance.com from another non-restricted location.

1 Like

I guess only GET requests are allowed , I just tried
GET /api/v3/account (HMAC SHA256)
It worked as well.
Anyway , Let me check Binance.us APIs.

Update → Using Binance.us did not work as my account is in Binance.com , so API keys would be different. I’ll try to trigger POST requests from a different region other than US , but that’s weird that GET is allowed but not POST , ideally it shouldn’t be allowed if at all.

Tested with Europe region , It worked . Thanks.