实测可用的股票数据接口,可以直接点击在浏览器中验证:
API接口链接(可点击验证):https://api.mairui.club/hslt/list/b997d4403688d5e66a
【实时数据接口】
API接口链接(可点击验证):https://api.mairui.club/hsrl/ssjy/000001/b997d4403688d5e66a
1、python
import requests
url = "http://api.mairui.club/hsrl/ssjy/000001/b997d4403688d5e66a"
response = requests.get(url)
data = response.json()
print(data)
2、JavaScript (Node.js)
const axios = require('axios');
const url = "http://api.mairui.club/hsrl/ssjy/000001/b997d4403688d5e66a";
axios.get(url)
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
3、Java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
public class Main {
public static void main(String[] args) {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://api.mairui.club/hsrl/ssjy/000001/b997d4403688d5e66a"))
.build();
try {
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
} catch (IOException | InterruptedException e) {
e.printStackTrace();
}
}
}
返回的数据:
{"fm":"-0.20","h":"10.26","hs":"0.67","lb":"1.38","l":"10.11","lt":"197161074084.00","o":"10.11","pe":"3.81","pc":"0.30","p":"10.16","sz":"197164128892.00","cje":"1318858687.52","ud":"0.03","v":"1294059","yc":"10.13","zf":"1.48","zs":"-0.20","sjl":"0.48","zdf60":"-0.20","zdfnc":"17.19","t":"2024-08-30 15:29:03"}
API接口链接(可点击验证):https://api.mairui.club/hsrl/mmwp/000001/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszb/fsjy/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszb/kdj/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszb/macd/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszb/ma/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszb/boll/000001/60m/b997d4403688d5e66a
【历史数据接口】
API接口链接(可点击验证):https://api.mairui.club/hszbl/fsjy/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszbl/kdj/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszbl/macd/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszbl/ma/000001/60m/b997d4403688d5e66a
API接口链接(可点击验证):https://api.mairui.club/hszbl/boll/000001/60m/b997d4403688d5e66a
标签:JAVA,000001,python,b997d4403688d5e66a,JavaScript,接口,club,api,mairui From: https://blog.csdn.net/Eumenides_max/article/details/144556452