Bitcoin Forum
December 12, 2024, 02:12:46 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3] 4 »  All
  Print  
Author Topic: Win Bitcoin this July with Coinsecure [For Devs Mainly]  (Read 6904 times)
gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 21, 2015, 08:03:33 AM
 #41


Oh, you can get testnet Bitcoins quite easily and deposit into the account as well.
As an Exchange, you can either buy or sell. The Testnet Instance gives you 5K INR test money and allows users to buy from the books or deposit more testnet coins.
You can even withdraw the testnet coins as you need to.

OK; Data for such "Off Market" transactions needs to be returned by your API to be included in the computation.
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 21, 2015, 08:08:52 AM
 #42


Oh, you can get testnet Bitcoins quite easily and deposit into the account as well.
As an Exchange, you can either buy or sell. The Testnet Instance gives you 5K INR test money and allows users to buy from the books or deposit more testnet coins.
You can even withdraw the testnet coins as you need to.

OK; Data for such "Off Market" transactions needs to be returned by your API to be included in the computation.

The testnet does play differently from livenet by very few rules.

  • Fixed Fiat sum given - No Fiat Deposits on Testnet
  • No Fiat Withdrawals on Testnet
  • No KYC & Bank Links on Testnet
  • No 2 Factor Authentication on Testnet
  • Reduced mail alerts on Testnet

Not sure what you mean by "Off Market". All the Testnet Bitcoins on the exchange have been deposits by users.
I can add user deposit and withdrawal data as well in the next fix up, if thats what you meant.

IIIIIHIIIII
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
July 21, 2015, 08:12:56 AM
 #43

Name : WhatBot
Source: https://github.com/IIIIIHIIIII/WhatBot
gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 21, 2015, 08:53:23 AM
 #44

Not sure what you mean by "Off Market". All the Testnet Bitcoins on the exchange have been deposits by users.
I can add user deposit and withdrawal data as well in the next fix up, if thats what you meant.

"Off-market Transaction" is a commonly used phrase in Stock Market circles to indicate transfers / buy / sell that do not happen via an exchange like BSE / NSE. For e.g. Assume I have two trading and demat accounts, one with ICICIDirect and one with Kotak Securities, I can fill out a form called a TFID and transfer any shares from one account to the other. I can also do that for consideration and sell to another party. These transactions are called Off-Market Transactions.

Your description of 'deposits' and 'widthdrawals' match closely with above standard description of Off-market-transactions. Hope that made sense.
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 21, 2015, 09:07:06 AM
 #45

Not sure what you mean by "Off Market". All the Testnet Bitcoins on the exchange have been deposits by users.
I can add user deposit and withdrawal data as well in the next fix up, if thats what you meant.

"Off-market Transaction" is a commonly used phrase in Stock Market circles to indicate transfers / buy / sell that do not happen via an exchange like BSE / NSE. For e.g. Assume I have two trading and demat accounts, one with ICICIDirect and one with Kotak Securities, I can fill out a form called a TFID and transfer any shares from one account to the other. I can also do that for consideration and sell to another party. These transactions are called Off-Market Transactions.

Your description of 'deposits' and 'widthdrawals' match closely with above standard description of Off-market-transactions. Hope that made sense.

Hmm, probably not quite.
Cos these transactions are happening on the Exchange. But the total stock is not issued by the Market/ Exchange in our case. Is this what you meant?

But I do get that you need inputs and outputs in order to get the correct result rather than user balances or trade based data. Will set that up asap.

gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 21, 2015, 09:23:07 AM
 #46

Hmm, probably not quite.
Cos these transactions are happening on the Exchange. But the total stock is not issued by the Market/ Exchange in our case. Is this what you meant?

We may be debating a minor point here, but it is important to get the terminology right.

A 'Transaction on an Exchange' is where the exchange squares off a pending Buy Order against a pending Sell Order. Technically this is two transactions - a Buy for the Buyer and a Sell for the Seller.

When a user "deposits bitcoins" -> they are bringing the asset from another wallet or source into your trading account so their balance increases. There is no role of the Exchange in this at all. To take the Stock Market analogy, There are three entities: (a) The Exchange such as BSE/NSE, (b) a demat account - that holds shares owned by users and (c) a trading account that allows a user to meet other owners of assets and exchange for consideration.  The "Market" is only the Exchange in this. I can purchase shares directly from my friend and deposit those shares into my demat account. When I do this the Exchange does not come into the picture.

I guess in your case Coinsecure is all three, which is the confusion.

Anyway, this may all be too pedantic ...

Thanks for the quick response on getting this fixed.
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 21, 2015, 09:27:46 AM
 #47

Hmm, probably not quite.
Cos these transactions are happening on the Exchange. But the total stock is not issued by the Market/ Exchange in our case. Is this what you meant?

We may be debating a minor point here, but it is important to get the terminology right.

A 'Transaction on an Exchange' is where the exchange squares off a pending Buy Order against a pending Sell Order. Technically this is two transactions - a Buy for the Buyer and a Sell for the Seller.

When a user "deposits bitcoins" -> they are bringing the asset from another wallet or source into your trading account so their balance increases. There is no role of the Exchange in this at all. To take the Stock Market analogy, There are three entities: (a) The Exchange such as BSE/NSE, (b) a demat account - that holds shares owned by users and (c) a trading account that allows a user to meet other owners of assets and exchange for consideration.  The "Market" is only the Exchange in this. I can purchase shares directly from my friend and deposit those shares into my demat account. When I do this the Exchange does not come into the picture.

I guess in your case Coinsecure is all three, which is the confusion.

Anyway, this may all be too pedantic ...

Thanks for the quick response on getting this fixed.

Nah, no debate here mate.. It does make good sense.
I am opening out the timeline to API as well, so that should contain almost all the outputs that we have for each user.

techguy
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
July 21, 2015, 10:42:55 AM
 #48


We have setup a github at https://github.com/coinsecure/hackathon. You could upload there or mail across to me.


Tried to create a new directory in that repo, but did not have enough privileges. Got a message: "Please make sure you have the correct access rights and the repository exists"

Anyway, my submission for this hackathon is hosted here: http://coinsecurecg.appspot.com/ Links to the Github repo and other details on that site.

Cheers.

Nice App. Some bugs though. Tried with my API key and don't get data for "Capital Gains" but instead a "500 Internal Server Error".

Sent you the API key I used in PM.

@TechGuy. Very nice too Cheesy
I think CoinSecure should be spelt Coinsecure.. though Benson would be the right one to comment.

Thanks Amitabh. I am glad you liked it Smiley
Amitabh S
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
July 21, 2015, 12:32:29 PM
 #49


Can you put a live version to test like gowron has done. That way its easier for anyone to evaluate before installing.


Oh, you can get testnet Bitcoins quite easily and deposit into the account as well.
As an Exchange, you can either buy or sell. The Testnet Instance gives you 5K INR test money and allows users to buy from the books or deposit more testnet coins.
You can even withdraw the testnet coins as you need to.

OK; Data for such "Off Market" transactions needs to be returned by your API to be included in the computation.

Or you can simply use the extra amount (instead of asserting net to be zero) and display it as total "withdrawals" or "deposits"

Coinsecure referral ID: https://coinsecure.in/signup/refamit (use this link to signup)
IIIIIHIIIII
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
July 21, 2015, 01:25:10 PM
 #50


Can you put a live version to test like gowron has done. That way its easier for anyone to evaluate before installing.

Already posted above.

WhatBot is up and running to use it simply add 918380865748 to your group.

Commands for bot :

Code:
 !register - Register accont.
 !balance - Check your balance.
 !tip - Tip others. (!tip <tag> <amount>) (!tip <tag> <amount>rs)
 !tag - Check your tag.
 !address - Check your address.
 !change - Change your tag. (!change <newTag>)
 !market - check coin market. (!market <coinName>)
 !convert - check n amount of coinA in coinB (!convert <amount> <coinA> <coinB>)

 Coinsecure commands :
 !coinapi - Add coinsecure api. (!coinapi <apiKey>)
 !cbid - Create bid.  (!cbid <rate> <vol>)
 !dbid - Cancel bid. (!dbid <OrderId>)
 !cask - Create ask. (!ask <rate> <vol>)
 !dask - Cancel ask. (!dask <OrderId>)
 !info - Check coinsecure market.
 !cbal - Check coin balance.
 !fbal - Check fiat balance.
 !addr - Get coinsecure address.

Will submit the code at github but first need to add more commands  Grin

Edit: !coinapi and !addr will only work in private chat with bot. All other will only work in group chat.
Amitabh S
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
July 21, 2015, 01:26:49 PM
 #51


Can you put a live version to test like gowron has done. That way its easier for anyone to evaluate before installing.

Already posted above.

WhatBot is up and running to use it simply add 918380865748 to your group.

Commands for bot :

Code:
 !register - Register accont.
 !balance - Check your balance.
 !tip - Tip others. (!tip <tag> <amount>) (!tip <tag> <amount>rs)
 !tag - Check your tag.
 !address - Check your address.
 !change - Change your tag. (!change <newTag>)
 !market - check coin market. (!market <coinName>)
 !convert - check n amount of coinA in coinB (!convert <amount> <coinA> <coinB>)

 Coinsecure commands :
 !coinapi - Add coinsecure api. (!coinapi <apiKey>)
 !cbid - Create bid.  (!cbid <rate> <vol>)
 !dbid - Cancel bid. (!dbid <OrderId>)
 !cask - Create ask. (!ask <rate> <vol>)
 !dask - Cancel ask. (!dask <OrderId>)
 !info - Check coinsecure market.
 !cbal - Check coin balance.
 !fbal - Check fiat balance.
 !addr - Get coinsecure address.

Will submit the code at github but first need to add more commands  Grin

Ok great! Missed your live post.

Coinsecure referral ID: https://coinsecure.in/signup/refamit (use this link to signup)
gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 21, 2015, 04:05:51 PM
 #52

Or you can simply use the extra amount (instead of asserting net to be zero) and display it as total "withdrawals" or "deposits"

That will show some data, but it will be incorrect as your true Capital Gains, defeating the purpose of the tool.

BTW - the app supports a 'test' apikey (i.e. type test into the apikey form field) to see how it works. It is explained in the FAQ, but so far no one has noticed Smiley
Amitabh S
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
July 22, 2015, 03:09:52 AM
 #53

Or you can simply use the extra amount (instead of asserting net to be zero) and display it as total "withdrawals" or "deposits"

That will show some data, but it will be incorrect as your true Capital Gains, defeating the purpose of the tool.

BTW - the app supports a 'test' apikey (i.e. type test into the apikey form field) to see how it works. It is explained in the FAQ, but so far no one has noticed Smiley

How about this suggestion?

(example for coins)
Wallet balance = x
your computed balance = y
then deposits/withdrawals = x-y = d

Do the same for fiat
Then you compute your capital gains using y, ignoring d. Will that work?

EDIT: tested with the "test" key. Here's what the UI looks like (for others):


Coinsecure referral ID: https://coinsecure.in/signup/refamit (use this link to signup)
gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 22, 2015, 05:01:01 AM
 #54

How about this suggestion?

(example for coins)
Wallet balance = x
your computed balance = y
then deposits/withdrawals = x-y = d

Do the same for fiat
Then you compute your capital gains using y, ignoring d. Will that work?

That will not be correct. To correctly calculate your CG, your sells need to be matched in FIFO order. If you ignore some transactions in either buy or sell, your setoffs will not be true. You will get some number out the tool, but it will not be in keeping with accounting principles. Ideally this should include *all* your bitcoin transactions - because your computing CG for *you* not for your activity on one exchange. It is for this reason that many stock trading / portfolio apps allow you to manually add "transactions" to your portfolio in the view (distinct from the transactions that happened on the exchange)

EDIT: tested with the "test" key. Here's what the UI looks like (for others):

Try a different date range. There are transactions from 2014-01-01 to 2015-06-30
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 22, 2015, 08:54:44 AM
 #55


That will not be correct. To correctly calculate your CG, your sells need to be matched in FIFO order. If you ignore some transactions in either buy or sell, your setoffs will not be true. You will get some number out the tool, but it will not be in keeping with accounting principles.

I would agree with this. The CG should be calculated on the basis of how much funds comes into the account and how much goes out, rather than how much was traded.
While user balance can be calculated as a one time. The Api does not show historical data for the same as yet and that is very much needed to know the trail.

Rewriting a lot of the API UI, integrating it a bit tighter into the proxy app.
Fixed response codes, etc.
Added some more methods.

Looks like, it will take longer to roll out though. Hopefully early next week.

gowron
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 22, 2015, 10:48:50 AM
 #56

Rewriting a lot of the API UI, integrating it a bit tighter into the proxy app.
Fixed response codes, etc.
Added some more methods.

:+1:
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 23, 2015, 05:28:40 PM
 #57

The hackathon ends tonight at 12.
Will announce winners by the 28th.

ani4444
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
July 24, 2015, 11:06:58 AM
 #58

"theStrategist" bot

Bot Details: The Bot is based on Coinsecure Testnet and an API from https://coinsecureis.cool/api is required to trade with the bot. It supports the following strategies:

Vanila Mode Place simple buy and sell orders.

Ghost Mode Orders placed are not shown on the Coinsecure exchange.The bot monitors the orders on the exchange and when it sees that the user order can be executed, it places the order on the exchange.

MeFirst Mode It is useful when you want to guard against users who prevent execution of your order by placing their order just lower/higher than yours. Eg: You placed a buy order at rate Rs.20000 now another user places buy order at Rs.20001 then his order is executed before yours. To prevent this the bot takes the base rate and a difference.The bot will place the order at base rate and then monitor for any other order placed in difference from base rate and in case of another order the bot will cancel the previous order and place a new order better than that of the other user.In previous example the bot will place an order at rate Rs. 20001.01 and keep on increasing till the difference which is the upper limit

Rainbow Mode It can be used to break the order into smaller orders of increasing/decreasing rate.Eg: If you place a sell order of 1 BTC at Rs.20000,set incement at Rs.10 and split into 5 orders, the bot will place 5 orders starting at .2 BTC for Rs.20000, then .2 BTC at Rs.20010 and so on.

SIP Mode This mode allows you to place order which will be executed at interval of input minutes.

Range Mode This mode allows user to place two order one buy and other sell.The bot will buy bitcoin at the lower buy price and sell bitcoins at higher sell price. Buy and sell orders are executed in order.It can be useful in case you expect the bitcoin price to fluctuate in a range .Eg: If the bitcoin price is fluctuation between Rs.20000 and Rs.19000, the bot will buy at Rs.19000 and sell at Rs.20000

Price Mode Price mode can be used to protect the user in case of large drop in bitcoin price or book profit in case of steep rise in price.If the condition for price order is met, then all the orders of the user is cancelled and a buy/sell order is placed for all the bitcoins in user account.

Executable Jar: https://www.dropbox.com/s/dcnnmosc0oj3s1m/theStrategist.jar?dl=0

Source: https://github.com/ani4444/theStrategist

https://i.imgur.com/mWiRAMh.png



https://i.imgur.com/AJ3qIQm.png
Benson Samuel (OP)
Legendary
*
Offline Offline

Activity: 1890
Merit: 1000


Landscaping Bitcoin for India!


View Profile WWW
July 24, 2015, 05:02:03 PM
 #59

Love this one Smiley

IIIIIHIIIII
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
July 28, 2015, 09:17:00 AM
Last edit: July 28, 2015, 09:38:50 AM by IIIIIHIIIII
 #60

Bot now also allow you to do mobile recharge via whatsapp.



Edit : coinsecure Withdraw api method will be nice for this. People will be able to use their coinsecure.in btc balance to pay for recharge. for it uses tipbot balance.
Pages: « 1 2 [3] 4 »  All
  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!