Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This is an unofficial Node.js API client for Wikifolio's platform.
⚠️ Wikifolio could change their API at any moment. ⚠️
If anything is broken, please open an issue.
🌞 Contributors wanted
# using npm
npm i wikifolio
# using yarn
yarn add wikifolio
The examples assume the following setup:
import Api from 'wikifolio'
const api = new Api({
email: 'email@example.org',
password: 'plaintext-password'
})
☝️ Use encrypted environment variables or command line prompts, never store your passwords in plain text.
const wikifolio = api.wikifolio('wfobserver')
console.log( await wikifolio.details() )
const wikifolio = api.wikifolio('wfobserver')
console.log( await wikifolio.price() )
const wikifolio = api.wikifolio('wfobserver')
console.log( await wikifolio.trades({pageSize: 100, page: 1}) )
const wikifolio = api.wikifolio('wfobserver')
console.log( await wikifolio.history() )
const wikifolio = api.wikifolio('wfobserver')
console.log( await wikifolio.portfolio() )
const wikifolios = await api.search({query: 'Supervisor'})
console.log( wikifolios )
const watchlist = await api.watchlist()
for(const wikifolio of watchlist){
await wikifolio.watchlist(false)
}
const user = api.user('riennevaplus')
console.log( await user.details() )
const user = api.user('riennevaplus')
console.log( await user.wikifolios() )
There's a similar sell()
method.
const wikifolio = api.wikifolio('wfobserver')
const order = await wikifolio.buy({
amount: 1,
limitPrice: 220,
orderType: "limit",
underlyingIsin: "DE000LS9NMQ9",
expiresAt: "2020-07-29T00:00:00.000Z"
})
Note: When orderType
is set to quote
the first returned quote will be accepted.
const wikifolio = api.wikifolio('wfobserver')
const order = wikifolio.order('8b4da005-6750-4b4c-9dff-0364d3e07be0')
console.log( await order.submit({limitPrice: 100}) )
const wikifolio = api.wikifolio('wfobserver')
const orders = await wikifolio.orders({pageSize: 25, page: 0})
for(const order of orders){
console.log( await order.remove() )
}
FAQs
Wikifolio (unofficial) API
We found that wikifolio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.