Skip to main content
Deno 2 is finally here 🎉️
Learn more

Freedom Cash Investor

This deno module stabilizes the buy price and increases the sell price for Freedom Cash while volatility farming via Bollinger Bands and maybe even while sleeping.

Usage Example

The coolest usage example you might find via https://FreedomCash.org.

import { Investor } from "https://deno.land/x/freedom_cash_investor/mod.ts"
import { Logger } from 'https://deno.land/x/log@v1.1.1/mod.ts'

const minLevelForConsole = 'DEBUG' 
const minLevelForFile = 'WARNING' 
const fileName = "./warnings-errors.txt"
const pureInfo = true // leaving out e.g. the time info
export const logger = await Logger.getInstance(minLevelForConsole, minLevelForFile, fileName, pureInfo)

const minHistoryLength = 3
const bFactor = 6
const sleepTimeInSeconds = 27
const relevantHistoryLength = 45
const investor: Investor = await Investor.getInstance(relevantHistoryLength, sleepTimeInSeconds, logger)
await investor.startTheParty(minHistoryLength, bFactor)

Execute Usage Example

deno run https://deno.land/x/freedom_cash_investor/usage-example.ts

Execute Unit Tests

deno test --allow-all https://deno.land/x/freedom_cash_investor/src/helpers/blockchain-helper.spec.ts
deno test --allow-all https://deno.land/x/freedom_cash_investor/src/helpers/decision-helper.spec.ts

Donations

Thanks to Freedom Cash, we are already free.
If you want to donate, you might consider donating to the otherparty.co.uk to ensure people do not need to donate to victims but rather donate successfully to problem solvers.

direct-democracy