[strvinmarvin] (Snippet) Scan BUSD Markets for Fees and Unified Data Object Example

1 295 Views 1 Comment 1 year ago
  • This snippet takes a list of coins and checks the Maker Fee for them. It also serves as an educational example for how to utilize a Unified Data Object, for which I got the idea from Strooth and Pshai and since implementing a simple version of it, I have found it really helps keep things organized in terms of saving persistent variables from cycle to cycle.

    The basics:

    (1) You load the ‘data’ object at the top.
    (2) You populate it with initial values once at the beginning
    (3) You add/update things easily any time in your core code and functions
    (4) You save the new state at the end for next cycle

    By doing this you don’t need to Load() and Save() individual things any more, for most of your use cases.

    HaasScript Code
    Sign in or Register to download for free
  • Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023 Exclusive
    Trading volume competition, win up to $10,000 USDT and bounties.
  • Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 2023
    15 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume
    • #2818

      Have you already been able to try this on v4? (It seems good practice to keep scripts tidy, fast)

      Thanks for publishing this, educational content is much appreciated.

Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free