Skip to content

Commit

Permalink
Python SDK: Update market constants
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKhalili committed Oct 28, 2024
1 parent 919b897 commit ea2c15d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
23 changes: 19 additions & 4 deletions src/driftpy/constants/perp_markets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ class PerpMarketConfig:
symbol="SOL-PERP",
base_asset_symbol="SOL",
market_index=0,
oracle=Pubkey.from_string("BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF"),
oracle_source=OracleSource.PythPull(),
oracle=Pubkey.from_string("En8hkHLkRe9d9DraYmBTrus518BvmVH448YcvmrFM6Ce"),
oracle_source=OracleSource.PythStableCoinPull(),
),
PerpMarketConfig(
symbol="BTC-PERP",
base_asset_symbol="BTC",
market_index=1,
oracle=Pubkey.from_string("486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4"),
oracle=Pubkey.from_string("BAtFj4kQttZRVep3UZS2aZRDixkGYgWsbqTBVDbnSsPF"),
oracle_source=OracleSource.PythPull(),
),
PerpMarketConfig(
symbol="ETH-PERP",
base_asset_symbol="ETH",
market_index=2,
oracle=Pubkey.from_string("6bEp2MiyoiiiDxcVqE8rUHQWwHirXUXtKfAEATTVqNzT"),
oracle=Pubkey.from_string("486kr3pmFPfTsS4aZgcsQ7kS4i9rjMsYYZup6HQNSTT4"),
oracle_source=OracleSource.PythPull(),
),
PerpMarketConfig(
Expand Down Expand Up @@ -210,6 +210,14 @@ class PerpMarketConfig:
oracle=Pubkey.from_string("GU6CA7a2KCyhpfqZNb36UAfc9uzKBM8jHjGdt245QhYX"),
oracle_source=OracleSource.Prelaunch(),
),
# 28 sDAQaZQJQ4RXAxH3x526mbEXyQZT15ktkL84d7hmk7M RANDOM-2024-BET OracleSource.Prelaunch()
PerpMarketConfig(
symbol="RANDOM-2024-BET", # Unknown!
base_asset_symbol="RANDOM-2024",
market_index=28,
oracle=Pubkey.from_string("sDAQaZQJQ4RXAxH3x526mbEXyQZT15ktkL84d7hmk7M"),
oracle_source=OracleSource.Prelaunch(),
),
]

mainnet_perp_market_configs: list[PerpMarketConfig] = [
Expand Down Expand Up @@ -570,4 +578,11 @@ class PerpMarketConfig:
oracle=Pubkey.from_string("6AVy1y9SnJECnosQaiK2uY1kcT4ZEBf1F4DMvhxgvhUo"),
oracle_source=OracleSource.Prelaunch(),
),
PerpMarketConfig(
symbol="1KMEW-PERP",
base_asset_symbol="1KMEW",
market_index=51,
oracle=Pubkey.from_string("DKGwCUcwngwmgifGxnme7zVR695LCBGk2pnuksRnbhfD"),
oracle_source=OracleSource.Pyth1KPull(),
),
]
4 changes: 2 additions & 2 deletions src/driftpy/constants/spot_markets.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ class SpotMarketConfig:
SpotMarketConfig(
symbol="dSOL",
market_index=17,
oracle=Pubkey.from_string("HJ9K9AamqVMp86j3uQgpA1tdJNRAwfVuL75FD9P3QBrn"),
oracle_source=OracleSource.Switchboard(),
oracle=Pubkey.from_string("7QJ6e57t3yM8HYVg6bAnJiCiZ3wQQ5CSVsa6GA16nJuK"),
oracle_source=OracleSource.SwitchboardOnDemand(),
mint=Pubkey.from_string("Dso1bDeDjCQxTrWHqUUi63oBvV7Mdm6WaobLbQ7gnPQ"),
),
SpotMarketConfig(
Expand Down

0 comments on commit ea2c15d

Please sign in to comment.