Skip to content

Commit

Permalink
Change domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
poboke committed Dec 30, 2017
1 parent 80a7226 commit 4705acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BinanceApi/Base.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public enum BinanceCandlesticksInterval: String, Codable {
}

public struct BinanceApi {
static let baseUrl = URL(string: "https://www.binance.com/api/")!
static let baseUrl = URL(string: "https://api.binance.com/api/")!

let session: SessionManager

Expand Down Expand Up @@ -190,7 +190,7 @@ public protocol BinanceRequest: Encodable, URLConvertible, URLRequestConvertible

public extension BinanceRequest {
public func asURL() throws -> URL {
let baseUrl = URL(string: "https://www.binance.com/api/")!
let baseUrl = URL(string: "https://api.binance.com/api/")!
return URL(string: Self.endpoint, relativeTo: baseUrl)!
}

Expand Down

0 comments on commit 4705acd

Please sign in to comment.