Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 Support for Alpaca-API #247

Open
MartinLPetrauskas opened this issue Feb 23, 2024 · 0 comments
Open

IPv6 Support for Alpaca-API #247

MartinLPetrauskas opened this issue Feb 23, 2024 · 0 comments

Comments

@MartinLPetrauskas
Copy link

It appears that the Alpaca API only supports IPv4 at this time. I am in the process of updating/migrating my software to utilize IPv6, but the Alpaca API does not seem to support it at this time.

ubuntu@server:~$ dig -6 api.alpaca.markets
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused
;; communications error to ::1#53: connection refused

; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> -6 api.alpaca.markets
;; global options: +cmd
;; no servers could be reached

ubuntu@server:~$ dig api.alpaca.markets

; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> api.alpaca.markets
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18036
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;api.alpaca.markets.            IN      A

;; ANSWER SECTION:
api.alpaca.markets.     300     IN      CNAME   live.alpaca.markets.
live.alpaca.markets.    300     IN      A       35.221.23.121

;; Query time: 7 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Fri Feb 23 23:27:29 UTC 2024
;; MSG SIZE  rcvd: 82

ubuntu@server:~$ curl -4 api.alpaca.markets
<html>
<head><title>308 Permanent Redirect</title></head>
<body>
<center><h1>308 Permanent Redirect</h1></center>
<hr><center>nginx</center>
</body>
</html>
ubuntu@server:~$ curl -6 api.alpaca.markets
curl: (7) Couldn't connect to server

I would like the Alpaca API to support IPv6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant