Edge All Products

Gets info about all available products across all chains including: product id, oracle price, configuration, state, etc.

Rate limits

  • 480 requests/min or 8 requests/sec per IP address. (weight = 5)

See more details in API Rate limits

Request

Connect

WEBSOCKET [GATEWAY_WEBSOCKET_ENDPOINT]

Message

{
 "type": "edge_all_products"
}

Response

Note:

  • A product is some asset / position an account can take on.

  • A market is a venue for a product against USDC.

  • All products have a market quoted against USDC, except for product 0.

  • Product 0 is the USDC asset itself.

  • You can retrieve product symbols via Symbols query.Body

  • Returns a mapping of chain_id -> all_products

{
  "status": "success",
  "data": {
    "edge_all_products": {
      "146": {
        "spot_products": [
          {
            "product_id": 0,
            "oracle_price_x18": "1000000000000000000",
            "risk": {
              "long_weight_initial_x18": "1000000000000000000",
              "short_weight_initial_x18": "1000000000000000000",
              "long_weight_maintenance_x18": "1000000000000000000",
              "short_weight_maintenance_x18": "1000000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0x179522635726710dd7d2035a81d856de4aa7836c",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1000000000277224322",
              "cumulative_borrows_multiplier_x18": "1000723856933478604",
              "total_deposits_normalized": "60000217694536241191595078762077",
              "total_borrows_normalized": "56233551820212408705694509"
            },
            "lp_state": {
              "supply": "0",
              "quote": {
                "amount": "0",
                "last_cumulative_multiplier_x18": "0"
              },
              "base": {
                "amount": "0",
                "last_cumulative_multiplier_x18": "0"
              }
            },
            "book_info": {
              "size_increment": "0",
              "price_increment_x18": "0",
              "min_size": "0",
              "collected_fees": "0",
              "lp_spread_x18": "0"
            }
          },
          {
            "product_id": 1,
            "oracle_price_x18": "24290291250000000000000",
            "risk": {
              "long_weight_initial_x18": "750000000000000000",
              "short_weight_initial_x18": "1250000000000000000",
              "long_weight_maintenance_x18": "800000000000000000",
              "short_weight_maintenance_x18": "1200000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0x5cc7c91690b2cbaee19a513473d73403e13fb431",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1001287531051121621",
              "cumulative_borrows_multiplier_x18": "1002452185804358156",
              "total_deposits_normalized": "74673923223418751744441",
              "total_borrows_normalized": "1848347625293254803217"
            },
            "lp_state": {
              "supply": "1304161502776469160512481",
              "quote": {
                "amount": "1534680334756385968136088",
                "last_cumulative_multiplier_x18": "1000000000277224322"
              },
              "base": {
                "amount": "62440707403022069417",
                "last_cumulative_multiplier_x18": "1001287531051121621"
              }
            },
            "book_info": {
              "size_increment": "1000000000000000",
              "price_increment_x18": "1000000000000000000",
              "min_size": "10000000000000000",
              "collected_fees": "5664024844019131439512577",
              "lp_spread_x18": "3000000000000000"
            }
          },
          {
            "product_id": 3,
            "oracle_price_x18": "1681810000000000000000",
            "risk": {
              "long_weight_initial_x18": "750000000000000000",
              "short_weight_initial_x18": "1250000000000000000",
              "long_weight_maintenance_x18": "800000000000000000",
              "short_weight_maintenance_x18": "1200000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0xcc59686e3a32fb104c8ff84dd895676265efb8a6",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1002663685545861807",
              "cumulative_borrows_multiplier_x18": "1004702476678588703",
              "total_deposits_normalized": "77394474553800029646558",
              "total_borrows_normalized": "31377958151684436040546"
            },
            "lp_state": {
              "supply": "902924999999999999774268",
              "quote": {
                "amount": "984703323731060714614479",
                "last_cumulative_multiplier_x18": "1000000000277224322"
              },
              "base": {
                "amount": "586977188575896487056",
                "last_cumulative_multiplier_x18": "1002663685545861807"
              }
            },
            "book_info": {
              "size_increment": "10000000000000000",
              "price_increment_x18": "100000000000000000",
              "min_size": "100000000000000000",
              "collected_fees": "1201071587798106012340647",
              "lp_spread_x18": "3000000000000000"
            }
          }
        ],
        "perp_products": [
          {
            "product_id": 2,
            "oracle_price_x18": "24271779157874997000000",
            "risk": {
              "long_weight_initial_x18": "875000000000000000",
              "short_weight_initial_x18": "1125000000000000000",
              "long_weight_maintenance_x18": "900000000000000000",
              "short_weight_maintenance_x18": "1100000000000000000",
              "large_position_penalty_x18": "0"
            },
            "state": {
              "cumulative_funding_long_x18": "6025153893891111787092",
              "cumulative_funding_short_x18": "6025153893891111787092",
              "available_settle": "32506679104377408544658070",
              "open_interest": "9129327465969830865724"
            },
            "lp_state": {
              "supply": "783207415944433511804197",
              "last_cumulative_funding_x18": "6025153893891111787092",
              "cumulative_funding_per_lp_x18": "-267908265037801062",
              "base": "36771000000000000000",
              "quote": "887293961894033684835743"
            },
            "book_info": {
              "size_increment": "1000000000000000",
              "price_increment_x18": "1000000000000000000",
              "min_size": "10000000000000000",
              "collected_fees": "3957196892770937478998381",
              "lp_spread_x18": "3000000000000000"
            }
          },
          {
            "product_id": 4,
            "oracle_price_x18": "1679551417494839400000",
            "risk": {
              "long_weight_initial_x18": "875000000000000000",
              "short_weight_initial_x18": "1125000000000000000",
              "long_weight_maintenance_x18": "900000000000000000",
              "short_weight_maintenance_x18": "1100000000000000000",
              "large_position_penalty_x18": "0"
            },
            "state": {
              "cumulative_funding_long_x18": "118679185021118125096",
              "cumulative_funding_short_x18": "118679185021118125096",
              "available_settle": "7808019114947093888875606",
              "open_interest": "61297300842544612484754"
            },
            "lp_state": {
              "supply": "541756546038144467864559",
              "last_cumulative_funding_x18": "118679185021118125096",
              "cumulative_funding_per_lp_x18": "-75569329718848700",
              "base": "357050000000000000000",
              "quote": "600826569931315324412780"
            },
            "book_info": {
              "size_increment": "10000000000000000",
              "price_increment_x18": "100000000000000000",
              "min_size": "100000000000000000",
              "collected_fees": "1100569346735732625192030",
              "lp_spread_x18": "3000000000000000"
            }
          }
        ]
      },
      "5000": {
        "spot_products": [
          {
            "product_id": 0,
            "oracle_price_x18": "1000000000000000000",
            "risk": {
              "long_weight_initial_x18": "1000000000000000000",
              "short_weight_initial_x18": "1000000000000000000",
              "long_weight_maintenance_x18": "1000000000000000000",
              "short_weight_maintenance_x18": "1000000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0x179522635726710dd7d2035a81d856de4aa7836c",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1000000000277224322",
              "cumulative_borrows_multiplier_x18": "1000723856933478604",
              "total_deposits_normalized": "60000217694536241191595078762077",
              "total_borrows_normalized": "56233551820212408705694509"
            },
            "lp_state": {
              "supply": "0",
              "quote": {
                "amount": "0",
                "last_cumulative_multiplier_x18": "0"
              },
              "base": {
                "amount": "0",
                "last_cumulative_multiplier_x18": "0"
              }
            },
            "book_info": {
              "size_increment": "0",
              "price_increment_x18": "0",
              "min_size": "0",
              "collected_fees": "0",
              "lp_spread_x18": "0"
            }
          },
          {
            "product_id": 1,
            "oracle_price_x18": "24290291250000000000000",
            "risk": {
              "long_weight_initial_x18": "750000000000000000",
              "short_weight_initial_x18": "1250000000000000000",
              "long_weight_maintenance_x18": "800000000000000000",
              "short_weight_maintenance_x18": "1200000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0x5cc7c91690b2cbaee19a513473d73403e13fb431",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1001287531051121621",
              "cumulative_borrows_multiplier_x18": "1002452185804358156",
              "total_deposits_normalized": "74673923223418751744441",
              "total_borrows_normalized": "1848347625293254803217"
            },
            "lp_state": {
              "supply": "1304161502776469160512481",
              "quote": {
                "amount": "1534680334756385968136088",
                "last_cumulative_multiplier_x18": "1000000000277224322"
              },
              "base": {
                "amount": "62440707403022069417",
                "last_cumulative_multiplier_x18": "1001287531051121621"
              }
            },
            "book_info": {
              "size_increment": "1000000000000000",
              "price_increment_x18": "1000000000000000000",
              "min_size": "10000000000000000",
              "collected_fees": "5664024844019131439512577",
              "lp_spread_x18": "3000000000000000"
            }
          },
          {
            "product_id": 3,
            "oracle_price_x18": "1681810000000000000000",
            "risk": {
              "long_weight_initial_x18": "750000000000000000",
              "short_weight_initial_x18": "1250000000000000000",
              "long_weight_maintenance_x18": "800000000000000000",
              "short_weight_maintenance_x18": "1200000000000000000",
              "large_position_penalty_x18": "0"
            },
            "config": {
              "token": "0xcc59686e3a32fb104c8ff84dd895676265efb8a6",
              "interest_inflection_util_x18": "800000000000000000",
              "interest_floor_x18": "10000000000000000",
              "interest_small_cap_x18": "40000000000000000",
              "interest_large_cap_x18": "1000000000000000000"
            },
            "state": {
              "cumulative_deposits_multiplier_x18": "1002663685545861807",
              "cumulative_borrows_multiplier_x18": "1004702476678588703",
              "total_deposits_normalized": "77394474553800029646558",
              "total_borrows_normalized": "31377958151684436040546"
            },
            "lp_state": {
              "supply": "902924999999999999774268",
              "quote": {
                "amount": "984703323731060714614479",
                "last_cumulative_multiplier_x18": "1000000000277224322"
              },
              "base": {
                "amount": "586977188575896487056",
                "last_cumulative_multiplier_x18": "1002663685545861807"
              }
            },
            "book_info": {
              "size_increment": "10000000000000000",
              "price_increment_x18": "100000000000000000",
              "min_size": "100000000000000000",
              "collected_fees": "1201071587798106012340647",
              "lp_spread_x18": "3000000000000000"
            }
          }
        ],
        "perp_products": [
          {
            "product_id": 2,
            "oracle_price_x18": "24271779157874997000000",
            "risk": {
              "long_weight_initial_x18": "875000000000000000",
              "short_weight_initial_x18": "1125000000000000000",
              "long_weight_maintenance_x18": "900000000000000000",
              "short_weight_maintenance_x18": "1100000000000000000",
              "large_position_penalty_x18": "0"
            },
            "state": {
              "cumulative_funding_long_x18": "6025153893891111787092",
              "cumulative_funding_short_x18": "6025153893891111787092",
              "available_settle": "32506679104377408544658070",
              "open_interest": "9129327465969830865724"
            },
            "lp_state": {
              "supply": "783207415944433511804197",
              "last_cumulative_funding_x18": "6025153893891111787092",
              "cumulative_funding_per_lp_x18": "-267908265037801062",
              "base": "36771000000000000000",
              "quote": "887293961894033684835743"
            },
            "book_info": {
              "size_increment": "1000000000000000",
              "price_increment_x18": "1000000000000000000",
              "min_size": "10000000000000000",
              "collected_fees": "3957196892770937478998381",
              "lp_spread_x18": "3000000000000000"
            }
          },
          {
            "product_id": 4,
            "oracle_price_x18": "1679551417494839400000",
            "risk": {
              "long_weight_initial_x18": "875000000000000000",
              "short_weight_initial_x18": "1125000000000000000",
              "long_weight_maintenance_x18": "900000000000000000",
              "short_weight_maintenance_x18": "1100000000000000000",
              "large_position_penalty_x18": "0"
            },
            "state": {
              "cumulative_funding_long_x18": "118679185021118125096",
              "cumulative_funding_short_x18": "118679185021118125096",
              "available_settle": "7808019114947093888875606",
              "open_interest": "61297300842544612484754"
            },
            "lp_state": {
              "supply": "541756546038144467864559",
              "last_cumulative_funding_x18": "118679185021118125096",
              "cumulative_funding_per_lp_x18": "-75569329718848700",
              "base": "357050000000000000000",
              "quote": "600826569931315324412780"
            },
            "book_info": {
              "size_increment": "10000000000000000",
              "price_increment_x18": "100000000000000000",
              "min_size": "100000000000000000",
              "collected_fees": "1100569346735732625192030",
              "lp_spread_x18": "3000000000000000"
            }
          }
        ]
      }
    }
  },
  "request_type": "query_edge_all_products"
}

Last updated