
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@predictionvc/prediction-api
Advanced tools
We are proud to introduce our 1.0.0 version of Prediction Enterprise API. It is our first step to sharing our data with the world and being more transparent about our predictions, their accuracy and our fund trades and performance. In the case you are missing some data please drop us a line at enterprise@prediction.vc. We will be happy to answer your questions and implement new features for you. Platform FAQ
Check out the docs at https://enterprise.prediction.vc/docs
npm i @predictionvc/prediction-api
const PredictionApi = require('prediction_enterprise_api')
const defaultClient = PredictionApi.ApiClient.instance
// Configure API key authorization: Authorization
const Authorization = defaultClient.authentications['Authorization']
Authorization.apiKey = "YOUR API KEY"
const api = new PredictionApi.FundApi()
const opts = {
'entry': '2018-09-01', // {Date} entry date for trades
'exit': '2018-09-01', // {Date} exit date for trades
'direction': 'short' // {String} short/long
}
api.fundTradesGet(opts)
.then(data => {
console.log('API called successfully. Returned data: ')
console.log(data)
})
.catch(error => {
console.error(error)
})
All URIs are relative to https://enterprise.prediction.vc/api/
Class | Method | HTTP request | Description |
---|---|---|---|
PredictionApi.FundApi | fundTradesGet | GET /funds/trades | Prediction Fund trade data |
PredictionApi.FundApi | fundsTradesPairsGet | GET /funds/trades/tokens | Traded tokens |
PredictionApi.HistoricalApi | historicalGet | GET /historical | Historical Data |
PredictionApi.OHLCApi | ohlcGet | GET /ohlc | OHLC Data |
PredictionApi.PredictionsApi | predictionsAccuracyGet | GET /predictions/accuracy | Accuracy |
PredictionApi.PredictionsApi | predictionsGet | GET /predictions | Predictions |
PredictionApi.PredictionsApi | predictionsTokensGet | GET /predictions/tokens | Tokens |
FAQs
Prediction Enterprise API sdk in Javascript
We found that @predictionvc/prediction-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.