Standards and Conventions

To ensure data consistency and reliability, the following standards and conventions are followed:

  1. Timestamps:

    • Fee details are stored in JSON format for compatibility across exchanges.

    • Each trade fee is linked to its respective trade to ensure accurate calculations.

  2. Data Integrity:

    • Each trade has a unique id that differentiates it from others.

    • symbol values follow the standard market notation (e.g., BTC/USD, ETH/USD).

  3. Trade Side Representation:

    • The side field is always either "buy" or "sell" to indicate trade direction.

  4. Order Execution Types:

    • The type field supports various order types, including:

      • Market Order: Executes immediately at the best available price.

      • Limit Order: Executes at a specific price or better.

      • Stop-Limit Order: Becomes a limit order once the stop price is reached.

  5. Fees and Costs:

    • Fee details are stored in JSON format for compatibility across exchanges.

    • Each trade fee is linked to its respective trade to ensure accurate calculations.

Last updated