degiro-api
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "degiro-api", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "description": "Degiro test scripts", |
@@ -19,6 +19,8 @@ # Unofficial DeGiro API | ||
### Basic example | ||
### Basic examples | ||
Basic log in DeGiro Platform. All endpoint needs a session key before those can be call. | ||
```js | ||
import * as DeGiro from 'degiro-api' | ||
const DeGiro = require('degiro-api') | ||
@@ -30,5 +32,24 @@ const degiro = new DeGiro({ | ||
degiro.login().then(console.log).catch(console.error) | ||
degiro.login() | ||
.then(() => console.log('Log in success')) | ||
.catch(console.error) | ||
``` | ||
Get account info using `await`: | ||
```js | ||
import DeGiro from 'degiro-api' | ||
const degiro = new DeGiro({ | ||
username: 'username', | ||
pwd: '*****' | ||
}) | ||
await degiro.login() | ||
const accountData = await degiro.getAccountData() | ||
// console.log(accountData) | ||
``` | ||
### License | ||
@@ -35,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
199609
57
0