Skip to content

Instantly share code, notes, and snippets.

@arvindrajnaidu
Last active May 3, 2021 05:25
Show Gist options
  • Select an option

  • Save arvindrajnaidu/8b1c53e4b24e3cae84f05b3b74cf0533 to your computer and use it in GitHub Desktop.

Select an option

Save arvindrajnaidu/8b1c53e4b24e3cae84f05b3b74cf0533 to your computer and use it in GitHub Desktop.
// Runs on May 4th
import { getStockPrice } from 'buzzie-stock'
import { sweepTo } from 'buzzie-payments'
export default = (x, y) => {
const price = await getStockPrice('PYPL')
if (price > 270) {
await sweepTo(a)
} else {
await sweepTo(b)
}
}
export const config = {
runAt: 1621526400,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment