fxbd

command module
v0.0.0-...-fe2e1c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 5 Imported by: 0

README

Forex Board

The goal of the project is to provide better monitoring of forex accounts.

You need only to have registered public monitoring, for example on myfxbook platform.

Forex Board

Assumptions

This guide assumes you're using Unix-like operating system, but you can adopt instruction commands for Windows, etc.

Requirements:

  1. Install Golang as described here.
wget https://dl.google.com/go/go$GOVERSION.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go$GOVERSION.linux-amd64.tar.gz
  1. Install dep utility as described here.
sudo curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Installation

  1. Download the source code of the project.

  2. Unpack the archive and go to the project directory:

$GOPATH/src/fxbd
  1. Create configuration file $GOPATH/src/fxbd/application_config.json with your settings:
{
  "port": 8080,
  "stats_dir": "/tmp/fxbd-stats",
  "accounts": [
    {
      "name": "My Account 1",
      "location": "https://www.myfxbook.com/members/user1/account1/id",
      "refresh_seconds": 300,
      "currency_divider": 100
    }
  ]
}

where:

  • port - exposed port of application available on.
  • stats_dir - folder where downloaded statistics located (must be writable).
  • accounts - list of monitored accounts.
    • name - Visible name of account on dashboard.
    • location - url to original Forex monitoring page (currently supports myfxbook only).
    • refresh_seconds - time period to download statistics (in seconds).
    • currency_divider - adjust currency values (for cent accounts use 100).
  1. Get dependencies:
dep init
dep ensure -v
  1. Build the project:
go build .
  1. Run executable:
./fxbd
  1. Check the page http://localhost:8080/.

Settings for MyFxBook monitoring

You need properly configure you original monitoring platform.

MyFxBook

Contribution

Feel free to bring your ideas improving the visual or functionality of the project in Issues or Pull Requests.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL