Skip to content

Commit

Permalink
Fix Binance API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mirumirumi committed Oct 16, 2023
1 parent f538923 commit ebf2e5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"bungcip.better-toml"
"tamasfe.even-better-toml"
]
}
2 changes: 1 addition & 1 deletion src/exchange/binance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use serde::Deserialize;

use crate::{args::*, error::*, exchange::*, unit::*};

const ENDPOINT_SPOT: &str = "https://data.binance.com/api/v3/klines";
const ENDPOINT_SPOT: &str = "https://data-api.binance.vision/api/v3/klines";
const ENDPOINT_PERPETUAL: &str = "https://fapi.binance.com/fapi/v1/klines";
const LIMIT_SPOT: i32 = 1000;
const LIMIT_PERPETUAL: i32 = 1500;
Expand Down

0 comments on commit ebf2e5a

Please sign in to comment.