Bitcoin Forum
May 05, 2024, 12:55:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simple script for btc-e almost completed  (Read 1064 times)
xSplit (OP)
Full Member
***
Offline Offline

Activity: 241
Merit: 102


View Profile
February 18, 2017, 01:53:55 AM
 #1

Take a look is very simple might be useful to someone

http://pastebin.com/shXZFPBV
1714870524
Hero Member
*
Offline Offline

Posts: 1714870524

View Profile Personal Message (Offline)

Ignore
1714870524
Reply with quote  #2

1714870524
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714870524
Hero Member
*
Offline Offline

Posts: 1714870524

View Profile Personal Message (Offline)

Ignore
1714870524
Reply with quote  #2

1714870524
Report to moderator
apercoin
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile WWW
February 18, 2017, 09:03:21 AM
 #2

You probably want to move it to source control system like github. It will track you changes and other people can fork it.
Patatas
Legendary
*
Offline Offline

Activity: 1750
Merit: 1115

Providing AI/ChatGpt Services - PM!


View Profile
February 18, 2017, 10:18:20 AM
 #3

Take a look is very simple might be useful to someone

http://pastebin.com/shXZFPBV

You recently started programming ? What does the script do ? Though I don't know how  client side script would make a difference I'd like to point out a few "avoid-doing-that" in your script.

Code:
var balance_btc = 0.4345, balance_usd = 0;
var min_diff = 1;
var last_bid_price = parseFloat($('#max_price').html());
var last_ask_price = null;
var is_selling = false;
Globals! Avoid them!
Do you use ECMA Script 6 ? Don't assign fixed values to "var",use constant instead.Also "use strict".
Code:
sell(last_bid_price,balance_btc);

Use Jquery to call your global or wrap them with the ending "();" braces to make them IIEF (Immediately Involked Self Executing Functions)
pcoin
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
February 19, 2017, 08:41:42 AM
 #4

Simple script for btc-e almost completed people dont just go about downloading script without any purpose, you need to tell us what this script is designed to do on btc-e platform, is a trading bot, a script to protect account from hacking, a script to alert on profitable trade setup etc
arunka71
Sr. Member
****
Offline Offline

Activity: 410
Merit: 257


View Profile
February 19, 2017, 08:56:39 PM
 #5

If you combine it with something like apache cordova (for UI) you'd have a nice smartphone app.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!