Skip to content

Commit

Permalink
Cleanup Databento adapter imports
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Feb 23, 2024
1 parent 295ce51 commit cdfd644
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nautilus_core/adapters/src/databento/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::{
};

use anyhow::{anyhow, bail, Result};
use databento::dbn::{self, Record};
use databento::dbn::Record;
use nautilus_core::{datetime::NANOSECONDS_IN_SECOND, time::UnixNanos};
use nautilus_model::{
data::{
Expand Down
1 change: 0 additions & 1 deletion nautilus_core/adapters/src/databento/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use std::{env, fs, path::PathBuf};

use anyhow::{bail, Result};
use databento::dbn;
use dbn::{
compat::InstrumentDefMsgV1,
decode::{dbn::Decoder, DbnMetadata, DecodeStream},
Expand Down
1 change: 0 additions & 1 deletion nautilus_core/adapters/src/databento/python/decode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

use databento::dbn;
use nautilus_core::{python::to_pyvalue_err, time::UnixNanos};
use nautilus_model::{
data::{depth::OrderBookDepth10, trade::TradeTick},
Expand Down
1 change: 0 additions & 1 deletion nautilus_core/adapters/src/databento/python/historical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use std::{fs, num::NonZeroU64, sync::Arc};

use databento::dbn;
use databento::historical::timeseries::GetRangeParams;
use indexmap::IndexMap;
use nautilus_core::{
Expand Down
2 changes: 1 addition & 1 deletion nautilus_core/adapters/src/databento/python/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use std::{collections::HashMap, ffi::CStr, fs, str::FromStr, sync::Arc};

use anyhow::{anyhow, bail, Result};
use databento::dbn::{self, PitSymbolMap, Record, SymbolIndex, VersionUpgradePolicy};
use databento::dbn::{PitSymbolMap, Record, SymbolIndex, VersionUpgradePolicy};
use databento::live::Subscription;
use indexmap::IndexMap;
use log::{error, info};
Expand Down
1 change: 0 additions & 1 deletion nautilus_core/adapters/src/databento/python/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

use std::{any::Any, collections::HashMap, path::PathBuf};

use databento::dbn;
use nautilus_core::{
ffi::cvec::CVec,
python::{to_pyruntime_err, to_pyvalue_err},
Expand Down
2 changes: 1 addition & 1 deletion nautilus_core/adapters/src/databento/symbology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// -------------------------------------------------------------------------------------------------

use anyhow::{bail, Result};
use databento::dbn::{self, Record};
use databento::dbn::Record;
use nautilus_model::identifiers::{instrument_id::InstrumentId, symbol::Symbol, venue::Venue};
use ustr::Ustr;

Expand Down
1 change: 0 additions & 1 deletion nautilus_core/adapters/src/databento/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.
// -------------------------------------------------------------------------------------------------

use databento::dbn;
use pyo3::prelude::*;
use serde::Deserialize;
use ustr::Ustr;
Expand Down

0 comments on commit cdfd644

Please sign in to comment.