You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

5
+

6
6
<br>
7
7
[<imgalt="ci errors"src="https://img.shields.io/github/actions/workflow/status/valeratrades/v_exchanges/errors.yml?branch=master&style=for-the-badge&style=flat-square&label=errors&labelColor=420d09"height="20">](https://github.com/valeratrades/v_exchanges/actions?query=branch%3Amaster)<!--NB: Won't find it if repo is private-->
8
8
[<imgalt="ci warnings"src="https://img.shields.io/github/actions/workflow/status/valeratrades/v_exchanges/warnings.yml?branch=master&style=for-the-badge&style=flat-square&label=warnings&labelColor=d16002"height="20">](https://github.com/valeratrades/v_exchanges/actions?query=branch%3Amaster)<!--NB: Won't find it if repo is private-->
Copy file name to clipboardExpand all lines: examples/data.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
use v_exchanges::{binance::Binance, bitmex::Bitmex};
1
+
use v_exchanges::{adapters::binance::BinanceOption,binance::Binance, bitmex::Bitmex};
2
2
3
3
/// things in here are not on [Exchange](v_exchanges::core::Exchange) trait, so can't use generics, must specify exact exchange client methods are referenced from.
Copy file name to clipboardExpand all lines: v_exchanges/src/core.rs
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,19 @@ use v_utils::{
12
12
13
13
#[async_trait::async_trait]
14
14
pubtraitExchange: std::fmt::Debug + Send{
15
+
// dev {{{
15
16
/// will always be `Some` when created from `AbsMarket`. When creating client manually could lead to weird errors from this method being used elsewhere, like displaying a `AbsMarket` object.
16
17
fnsource_market(&self) -> AbsMarket;
17
18
fnexchange_name(&self) -> &'staticstr{
18
19
self.source_market().exchange_name()
19
20
}
21
+
//,}}}
20
22
23
+
// Config {{{
21
24
fnauth(&mutself,key:String,secret:SecretString);
25
+
/// Set number of **milliseconds** the request is valid for. Recv Window of over a minute does not make sense, thus it's expressed as u16.
0 commit comments