@symmetry-hq/funds-automation-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Funds Automation Sdk

Software Development Kit for automating Symmetry Funds

Init

import { AutomationSDK } from "@symmetry-hq/funds-automation-sdk";

let automationSdk: AutomationSDK = await AutomationSDK.init(
    // rpc connection
    connection: Connection,
    // wallet
    wallet: Wallet,
    // filters (host/manager)
    filters: FilterOptions[]
    // enable logs
    enableConsoleLogs?: boolean,
);

Run

Ideally call fiveMinuteCalls every 5 minutes and hourlyCalls every hour

// fetch buy and sell states based on filters and rebalance them
// buy state will be closed if it was created more than 3 minutes ago
await automationSdk.fiveMinuteCalls(),

// fetch funds based on filters and refilter/reweight/rebalance them
// if removeDust == true, tokens with valu < 0.005 USDC
// and target weight = 0 will be removed from fund.
await automationSdk.hourlyCalls(removeDust?: boolean),

Package Sidebar

Install

npm i @symmetry-hq/funds-automation-sdk

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

30.6 kB

Total Files

7

Last publish

Collaborators

  • effarigesrever
  • prism-ag
  • ubermenschsym
  • symmetry_fi