Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wisespace-io authored Mar 7, 2024
2 parents 699104b + b0e9684 commit f307ae2
Show file tree
Hide file tree
Showing 32 changed files with 183 additions and 601 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-10-15
toolchain: nightly
override: true
components: clippy
- run: cargo clippy --all-targets
Expand All @@ -26,17 +26,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [msrv, stable, nightly, macos, windows]
build: [msrv, stable, macos, windows]
include:
- build: msrv
os: ubuntu-latest
rust: 1.56.1
rust: 1.76.0
- build: stable
os: ubuntu-latest
rust: stable
- build: nightly
os: ubuntu-latest
rust: nightly
- build: macos
os: macos-latest
rust: stable
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "binance"
version = "0.20.2"
license = "MIT OR Apache-2.0"
authors = ["Flavio Oliveira <flavio@wisespace.io>"]
edition = "2018"
authors = ["Flavio Oliveira <ollivera-dev@protonmail.com>"]
edition = "2021"

description = "Rust Library for the Binance API"
keywords = ["cryptocurrency", "trading", "binance"]
Expand All @@ -29,6 +29,7 @@ error-chain = { version = "0.12.4", default-features = false }
reqwest = { version = "0.11.24", features = ["blocking", "json"] }
tungstenite = { version = "0.21.0", features = ["native-tls"] }
url = "2.5.0"
clap = "4.5.2"

[features]
vendored-tls = [
Expand Down
42 changes: 0 additions & 42 deletions binance_test_cpp/Makefile

This file was deleted.

9 changes: 0 additions & 9 deletions binance_test_cpp/README

This file was deleted.

Binary file removed binance_test_cpp/libbinance.so
Binary file not shown.
8 changes: 0 additions & 8 deletions binance_test_cpp/libcallcpp.cpp

This file was deleted.

Binary file removed binance_test_cpp/main
Binary file not shown.
63 changes: 0 additions & 63 deletions binance_test_cpp/main.cpp

This file was deleted.

Binary file removed binance_test_cpp/main.o
Binary file not shown.
4 changes: 0 additions & 4 deletions examples/binance_websockets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use binance::userstream::*;
use binance::websockets::*;
use std::sync::atomic::{AtomicBool, Ordering};



fn main() {
//user_stream();
//user_stream_websocket();
Expand All @@ -15,8 +13,6 @@ fn main() {
//all_trades_websocket();
//last_price_for_one_symbol();
// multiple_streams();


}

fn user_stream() {
Expand Down
Binary file removed examples/libcallcpp.so
Binary file not shown.
Binary file removed examples/websockets
Binary file not shown.
15 changes: 0 additions & 15 deletions examples/websockets.rs

This file was deleted.

4 changes: 1 addition & 3 deletions src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -724,9 +724,7 @@ impl Account {
.delete_signed(API::Spot(Spot::Order), Some(request))
}

pub fn cancel_order_with_client_id_rs<S>() {

}
pub fn cancel_order_with_client_id_rs<S>() {}
/// Place a test cancel order
///
/// This order is sandboxed: it is validated, but not sent to the matching engine.
Expand Down
4 changes: 4 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ pub enum Futures {
LvtKlines,
IndexInfo,
ChangeInitialLeverage,
MarginType,
PositionMargin,
Account,
OpenOrders,
UserDataStream,
Expand Down Expand Up @@ -161,6 +163,8 @@ impl From<API> for String {
Futures::LvtKlines => "/fapi/v1/lvtKlines",
Futures::IndexInfo => "/fapi/v1/indexInfo",
Futures::ChangeInitialLeverage => "/fapi/v1/leverage",
Futures::MarginType => "/fapi/v1/marginType",
Futures::PositionMargin => "/fapi/v1/positionMargin",
Futures::Account => "/fapi/v2/account",
Futures::OpenOrders => "/fapi/v1/openOrders",
Futures::UserDataStream => "/fapi/v1/listenKey",
Expand Down
Loading

0 comments on commit f307ae2

Please sign in to comment.