pub struct UpbitExchange { /* private fields */ }Expand description
Upbit exchange implementation
Implementations§
Source§impl UpbitExchange
impl UpbitExchange
Sourcepub fn new() -> UpbitExchange
pub fn new() -> UpbitExchange
Create a new Upbit exchange instance with default credentials from environment
Sourcepub fn with_credentials(access_key: String, secret_key: String) -> UpbitExchange
pub fn with_credentials(access_key: String, secret_key: String) -> UpbitExchange
Create a new Upbit exchange with custom credentials
Trait Implementations§
Source§impl Default for UpbitExchange
impl Default for UpbitExchange
Source§fn default() -> UpbitExchange
fn default() -> UpbitExchange
Returns the “default value” for a type. Read more
Source§impl Exchange for UpbitExchange
impl Exchange for UpbitExchange
Source§fn send_order<'life0, 'async_trait>(
&'life0 self,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<(), OmsError>> + Send + 'async_trait>>where
'life0: 'async_trait,
UpbitExchange: 'async_trait,
fn send_order<'life0, 'async_trait>(
&'life0 self,
order: Order,
) -> Pin<Box<dyn Future<Output = Result<(), OmsError>> + Send + 'async_trait>>where
'life0: 'async_trait,
UpbitExchange: 'async_trait,
Send an order to the exchange
Auto Trait Implementations§
impl Freeze for UpbitExchange
impl !RefUnwindSafe for UpbitExchange
impl Send for UpbitExchange
impl Sync for UpbitExchange
impl Unpin for UpbitExchange
impl !UnwindSafe for UpbitExchange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more