Skip to content

Commit

Permalink
Documentation fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
creslinux committed Jul 29, 2018
1 parent 1e804c0 commit c85c7a3
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions docs/sandbox-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ From within sand box site select your profile, top right.
From the menu panel to the left of the screen select
> Security: "*View or Update*"
In the new site select "enable authenticator" as typical google auth.
In the new site select "enable authenticator" as typical google Authenticator.
- open Google Authenticator on your phone
- scan barcode
- enter your generated 2fa
Expand All @@ -45,14 +45,16 @@ In the new site select "enable authenticator" as typical google auth.
From within sandbox select profile>api>create api-keys
>or as a direct link: https://public.sandbox.pro.coinbase.com/profile/api
Ensure **view** and **trade** are "checked" and sumbit your 2Fa
Click on "create one" and ensure **view** and **trade** are "checked" and sumbit your 2Fa
- **Copy and paste the Passphase** into a notepade this will be needed later
- **Copy and paste the API Secret** popup into a notepad this will needed later
- **Copy and paste the API Key** into a notepad this will needed later

## Add 50 BTC test funds
To add funds, use the web interface deposit and withdraw buttons.
Select Wallets.


To begin select 'Wallets' from the top menu.
> Or as a direct link: https://public.sandbox.pro.coinbase.com/wallets
- Deposits (bottom left of screen)
Expand All @@ -61,21 +63,22 @@ Select Wallets.
- - - - Max (50 BTC)
- - - - - Deposit

*This process may be repeated for other currencies, ETH as example*
---
# Configure Freqtrade to use Gax Sandbox

The aim of this document section
- enable sandbox URLs in Freqtrade
- Enable sandbox URLs in Freqtrade
- Configure API
- - secret
- - key
- - passphrase

## Sandbox URLs
Freqtrade makes use of CCXT which in turn provides a list of URLs to Freqtrade.
These incldue ['test'] and ['api'].
- [Test] if available will point to an Exchanges sandbox.
- [Api] normally used, and resolves to live API target on the exchange
These include `['test']` and `['api']`.
- `[Test]` if available will point to an Exchanges sandbox.
- `[Api]` normally used, and resolves to live API target on the exchange

To make use of sandbox / test add "sandbox": true, to your config.json
```
Expand Down Expand Up @@ -117,7 +120,7 @@ Look for the following section:
return False, False
```

And Hash out as follows:
You could Hash out the entire check as follows:
```
# # Check if dataframe is out of date
# signal_date = arrow.get(latest['date'])
Expand All @@ -130,4 +133,19 @@ And Hash out as follows:
# )
# return False, False
```


Or inrease the timeout to offer a level of protection/alignment of this test to freqtrade in live.

As example, to allow an additional 30 minutes. "(interval_minutes * 2 + 5 + 30)"
```
# Check if dataframe is out of date
signal_date = arrow.get(latest['date'])
interval_minutes = constants.TICKER_INTERVAL_MINUTES[interval]
if signal_date < (arrow.utcnow().shift(minutes=-(interval_minutes * 2 + 5 + 30))):
logger.warning(
'Outdated history for pair %s. Last tick is %s minutes old',
pair,
(arrow.utcnow() - signal_date).seconds // 60
)
return False, False
```

0 comments on commit c85c7a3

Please sign in to comment.