Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #847 from Swingcloud/fix/forkdelta
Browse files Browse the repository at this point in the history
update Forkdelta endpoint
  • Loading branch information
ernsheong authored Aug 16, 2018
2 parents 5100e7b + f5bd68d commit 05ed958
Show file tree
Hide file tree
Showing 7 changed files with 3,147 additions and 8,516 deletions.
6 changes: 3 additions & 3 deletions lib/cryptoexchange/exchanges/forkdelta/market.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ module Cryptoexchange::Exchanges
module Forkdelta
class Market < Cryptoexchange::Models::Market
NAME = 'forkdelta'
API_URL = 'https://api.forkdelta.com'
TOKEN_URL = 'https://forkdelta.github.io/config/main.json'
API_URL = 'https://api.forkdelta.app'
TOKEN_URL = 'https://forkdelta.app/config/main.json'

def self.trade_page_url(args={})
"https://forkdelta.github.io/#!/trade/#{args[:base]}-#{args[:target]}"
"https://forkdelta.app/#!/trade/#{args[:base]}-#{args[:target]}"
end

class << self
Expand Down

Large diffs are not rendered by default.

2,015 changes: 1,015 additions & 1,000 deletions spec/cassettes/vcr_cassettes/Forkdelta/fetch_symbol.yml

Large diffs are not rendered by default.

4,777 changes: 1,022 additions & 3,755 deletions spec/cassettes/vcr_cassettes/Forkdelta/integration_specs_fetch_pairs.yml

Large diffs are not rendered by default.

4,777 changes: 1,022 additions & 3,755 deletions spec/cassettes/vcr_cassettes/Forkdelta/integration_specs_fetch_ticker.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion spec/exchanges/forkdelta/integration/market_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

it 'give trade url' do
trade_page_url = client.trade_page_url 'forkdelta', base: stu_eth_pair.base, target: stu_eth_pair.target
expect(trade_page_url).to eq "https://forkdelta.github.io/#!/trade/STU-ETH"
expect(trade_page_url).to eq "https://forkdelta.app/#!/trade/STU-ETH"
end

it 'fetch ticker' do
Expand Down
4 changes: 2 additions & 2 deletions spec/exchanges/forkdelta/market_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

RSpec.describe Cryptoexchange::Exchanges::Forkdelta::Market do
it { expect(described_class::NAME).to eq 'forkdelta' }
it { expect(described_class::API_URL).to eq 'https://api.forkdelta.com' }
it { expect(described_class::TOKEN_URL).to eq 'https://forkdelta.github.io/config/main.json' }
it { expect(described_class::API_URL).to eq 'https://api.forkdelta.app' }
it { expect(described_class::TOKEN_URL).to eq 'https://forkdelta.app/config/main.json' }

it 'fetch symbol' do
VCR.use_cassette('Forkdelta/fetch_symbol') do
Expand Down

0 comments on commit 05ed958

Please sign in to comment.