Skip to content

fabOnReact/betfair-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Betfair API Notifications

Description

Command Line Application to interact with the Betfair api. Watch a video explaining the main functionalities. The Betfair CLI allows you to retrieve information via command line from the Betfair API and monitor price fluctuations of matches. It uses the ruby-betfair gem and the betfair api.

Video instruction on installation here.

Installation

Clone the Project

clone the project

git clone https://github.com/fabriziobertoglio1987/betfair-notifications.git

The following post explains how to configure the symlink of a ruby script.

The project needs to be copied in your home directory, then a symlink to the project bin/betfair needs to be created. The above page includes more details.

The following environment variable needs to be saved in ~/.bash_profile. It will include:

Your Email Your password Your App code The path to the directory including all the files.

# Betfair
export BETFAIR_EMAIL="your-email"
export BETFAIR_PW="your-password"
export BETFAIR_APPLICATION_CODE="your-app-code"
export PROJECT_ROOT='root/to/your/folder'

Ruby Version Installation

Install ruby version 2.2.5 more information are available at rbenv https://github.com/rbenv/rbenv

the steps once rbenv is installed should be:

cd /path/to/your/files/directory
rbenv install 2.2.5
rbenv local 2.2.5

Also you should set the global version of rbenv to 2.2.5 with

rbenv global 2.2.5

Install the project

  1. run setup
cd /to/your/project/folder
bin/setup
  1. if you want to use 2 factor you need to add 3 environment variables,details are included at the following link This environment variables are actually written downcase ('two_factor'). I should update this in a later commit.
ENV['two_factor'] ='true'
ENV['cert_key_file_path']
ENV['cert_file_path']