docs-api
docs-api copied to clipboard
[خطا]: اختلال در دریافت اطلاعات از سرور خارج از کشور
شرح خطا
سلام
مجددا از دیروز، درخواستها از خارج از ایران به دامنههای nobitex.ir و nobitex.net به صورت پراکنده و با نرخ بالا با مشکل مواجه میشوند. ریسپانس باینری است در حالی که باید json باشد، همچنین در مواردی timeout هم مشاهده میشود
جزئیات درخواست
-
آدرس:
GET /v2/orderbook/USDTIRT -
داده:
-
هدر:
-
محیط:
- اصلی
پاسخ دریافتی
- Trying 185.166.104.3:443...
- TCP_NODELAY set
- Connected to api.nobitex.net (185.166.104.3) port 443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
- TLSv1.3 (IN), TLS handshake, Certificate (11):
- TLSv1.3 (IN), TLS handshake, CERT verify (15):
- TLSv1.3 (IN), TLS handshake, Finished (20):
- TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.3 (OUT), TLS handshake, Finished (20):
- SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
- ALPN, server accepted to use h2
- Server certificate:
- subject: CN=api.nobitex.net
- start date: Jan 14 13:45:53 2024 GMT
- expire date: Apr 13 13:45:52 2024 GMT
- subjectAltName: host "api.nobitex.net" matched cert's "api.nobitex.net"
- issuer: C=US; O=Let's Encrypt; CN=R3
- SSL certificate verify ok.
- Using HTTP2, server supports multi-use
- Connection state changed (HTTP/2 confirmed)
- Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- Using Stream ID: 1 (easy handle 0x55e7a00940c0)
GET /v2/orderbook/USDTIRT HTTP/2 Host: api.nobitex.net user-agent: curl/7.68.0 accept: /
- TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
- old SSL session ID is stale, removing
- Connection state changed (MAX_CONCURRENT_STREAMS == 128)! < HTTP/2 200 < date: Sun, 28 Jan 2024 11:14:32 GMT < content-type: application/json < cache-control: max-age=1,public,stale-if-error=60 < access-control-allow-credentials: true < access-control-allow-origin: https://nobitex.net < content-encoding: gzip < x-zrk-us: 200 < strict-transport-security: max-age=31536000 < server: Delivery < x-zrk-cs: HIT < x-zrk-sn: 6001 < accept-ranges: bytes < Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: <FILE>" to save to a file.
- Failed writing body (0 != 408)
- stopped the pause stream!
- Connection #0 to host api.nobitex.net left intact
پاسخ مورد انتظار
{"status":"ok","lastUpdate":1699083475909,"lastTradePrice":"517870","bids":[["517870","294.14"],["517980","5215.36"],["517990","55.89"],["518000","8102.94"],["518180","31.47"],["518190","556.78"],["518200","155.83"],["518210","40"],["518350","797.36"],["518390","479.33"],["518400","277.95"],["518450","40.01"],["518490","896.75"],["518500","7064.38"],["518600","294.41"],["519000","1002"],["519100","76.08"],["519200","1009.26"],["519290","200.99"],["519300","13111.33"],["519350","1107.86"],["519370","3361.83"],["519400","108.71"],["519490","455.25"]],"asks":[["517860","70"],["517810","4"],["517800","1815.48"],["517790","28.98"],["517770","2495.07"],["517750","100"],["517720","2"],["517710","101"],["517700","1642.35"],["517690","1000"],["517670","482.86"],["517650","94.69"],["517630","3594.25"],["517610","101"],["517600","78.24"],["517590","14.77"],["517560","200"],["517520","30"],["517510","8101.72"],["517500","6285.18"],["517430","28.35"],["517420","5.7"],["517410","101"],["517400","225.75"]]}
پیوند مراجع
https://apidocs.nobitex.ir/#6528ce0c42
اطلاعات تکمیلی
- vps
- ovh سرور خارجی