Splits
Base URL: https://api.rsplit.io
Splits
GET /v1/splits
Get current reverse stock splits.
Request Parameters
apiKey Required
Your API Key.
exchange
A comma-seperated string of exchanges to restrict the results to.
- cURL
- Go
- Java
- Javascript
- Python
curl "https://api.rsplit.io/v1/splits?apiKey=YOUR_API_KEY"
main.go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.rsplit.io/v1/splits?apiKey=YOUR_API_KEY"
resp, err := http.Get(url)
if err != nil {
fmt.Println("Error:", err)
return
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
fmt.Println("Error reading body:", err)
return
}
fmt.Println(string(body))
}
ReverseSplits.java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.time.Duration;
public class ReverseSplits {
public static void main(String[] args) throws IOException, InterruptedException{
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.rsplit.io/v1/splits?apiKey=YOUR_API_KEY"))
.timeout(Duration.ofSeconds(10))
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
reverseSplits.js
fetch('https://api.rsplit.io/v1/splits?apiKey=YOUR_API_KEY', {method: 'GET'})
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
reverse_splits.py
import requests
url = 'https://api.rsplit.io/v1/splits?apiKey=YOUR_API_KEY'
response = requests.get(url)
print(response.json())
Response Object
data array
-
ticker
string
The symbol for the given reverse split.
-
exchange
string
Stock exchange where the security is traded.
-
company
string
The company name.
-
ratio
string
The ratio of the reverse split.
-
ex_date
string
The date on which the stock starts trading at the new adjusted split price.
-
date_announced
string
The date on which the revere stock split was announced.
{
"data": [
{
"ticker": "RSRBF",
"exchange": "OTC",
"company": "Robex Resources Inc",
"ratio": "1:10",
"ex_date": "2024-04-08",
"date_announced": null
},
{
"ticker": "NUTX",
"exchange": "NASDAQ",
"company": "Nutex Health",
"ratio": "1:15",
"ex_date": "2024-04-10"
"date_announced": "2024-04-05"
},
{
"ticker": "SMSI",
"exchange": "NASDAQ",
"company": "Smith Micro Software",
"ratio": "1:8",
"ex_date": "2024-04-11",
"date_announced": "2023-04-03"
},
{
"ticker": "SOXS",
"exchange": "AMEX",
"company": "Direxion Daily Semiconductor Bear 3X Shares",
"ratio": "1:10",
"ex_date": "2024-04-15",
"date_announced": "2023-03-15"
},
{
"ticker": "NCNA",
"exchange": "NASDAQ",
"company": "NuCana plc",
"ratio": "1:25",
"ex_date": "2024-04-25",
"date_announced": "2024-03-06"
},
]
}