bitmex_http/http.rs
1// -------------------------------------------------------------------------------------------------
2// Copyright (C) 2015-2025 Nautech Systems Pty Ltd. All rights reserved.
3// https://nautechsystems.io
4//
5// Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6// You may not use this file except in compliance with the License.
7// You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16// Under development
17#![allow(dead_code)]
18#![allow(unused_variables)]
19
20use std::env;
21
22use nautilus_bitmex::http::client::BitmexHttpClient;
23use tracing::level_filters::LevelFilter;
24
25#[tokio::main]
26async fn main() -> Result<(), Box<dyn std::error::Error>> {
27 tracing_subscriber::fmt()
28 .with_max_level(LevelFilter::TRACE)
29 .init();
30
31 let api_key = env::var("BITMEX_API_KEY").expect("environment variable should be set");
32 let api_secret = env::var("BITMEX_API_SECRET").expect("environment variable should be set");
33 let client = BitmexHttpClient::new(None, Some(api_key), Some(api_secret), false, None);
34
35 Ok(())
36}