File tree Expand file tree Collapse file tree
crates/truefix-okx-client/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ pub enum Environment {
8080}
8181
8282impl Environment {
83- const OKX_REST_BASE : & str = "https://www .okx.com" ;
83+ const OKX_REST_BASE : & str = "https://openapi .okx.com" ;
8484 const LIVE_PUBLIC_WS : & str = "wss://ws.okx.com:8443/ws/v5/public" ;
8585 const LIVE_PRIVATE_WS : & str = "wss://ws.okx.com:8443/ws/v5/private" ;
8686 const LIVE_BUSINESS_WS : & str = "wss://ws.okx.com:8443/ws/v5/business" ;
@@ -201,7 +201,7 @@ mod tests {
201201 #[ test]
202202 fn standard_environments_expose_documented_endpoints ( ) {
203203 let demo = Environment :: Demo ;
204- assert_eq ! ( demo. rest_base( ) , "https://www .okx.com" ) ;
204+ assert_eq ! ( demo. rest_base( ) , "https://openapi .okx.com" ) ;
205205 assert_eq ! (
206206 demo. public_ws_url( ) ,
207207 "wss://wspap.okx.com:8443/ws/v5/public"
@@ -216,7 +216,7 @@ mod tests {
216216 ) ;
217217
218218 let live = Environment :: Live ( LiveTradingConfirmation :: acknowledge_risk ( ) ) ;
219- assert_eq ! ( live. rest_base( ) , "https://www .okx.com" ) ;
219+ assert_eq ! ( live. rest_base( ) , "https://openapi .okx.com" ) ;
220220 assert_eq ! ( live. public_ws_url( ) , "wss://ws.okx.com:8443/ws/v5/public" ) ;
221221 assert_eq ! ( live. private_ws_url( ) , "wss://ws.okx.com:8443/ws/v5/private" ) ;
222222 assert_eq ! (
You can’t perform that action at this time.
0 commit comments