binance-us / binance-us-api-docs

Official Documentation for the Binance US APIs and Streams
411 stars 169 forks source link

Wallet Endpoint - Withdraw/Deposit History #32

Open birth23 opened 3 years ago

birth23 commented 3 years ago

I am trying to get withdraw history but /sapi/v1/capital/withdraw/history is not working for me on BinanceUS. i also tried api/v3/withdrawHistory.html in both cases I get illegal character error: Illegal characters found in parameter 'ip'; legal range is '^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$'. any ideas?

wellsie1116 commented 3 years ago

I ran into this issue with the "/sapi/v1/asset/assetDividend" endpoint. This issue gave me the hint I needed to find a workaround.

api.binance.us resolves to both ipv6 and ipv4 addresses, and these endpoints will fail when a client connects over ipv6. Explicitly binding my client to my local ipv4 address, so it will only connect over ipv4, allowed me to query that endpoint.