Pages:
Author

Topic: Win Bitcoin this July with Coinsecure [For Devs Mainly] - page 2. (Read 6862 times)

legendary
Activity: 1001
Merit: 1004
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):

newbie
Activity: 28
Merit: 0
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
legendary
Activity: 1001
Merit: 1004

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 ) (!tip rs)
 !tag - Check your tag.
 !address - Check your address.
 !change - Change your tag. (!change )
 !market - check coin market. (!market )
 !convert - check n amount of coinA in coinB (!convert )

 Coinsecure commands :
 !coinapi - Add coinsecure api. (!coinapi )
 !cbid - Create bid.  (!cbid )
 !dbid - Cancel bid. (!dbid )
 !cask - Create ask. (!ask )
 !dask - Cancel ask. (!dask )
 !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.
member
Activity: 69
Merit: 10

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 ) (!tip rs)
 !tag - Check your tag.
 !address - Check your address.
 !change - Change your tag. (!change )
 !market - check coin market. (!market )
 !convert - check n amount of coinA in coinB (!convert )

 Coinsecure commands :
 !coinapi - Add coinsecure api. (!coinapi )
 !cbid - Create bid.  (!cbid )
 !dbid - Cancel bid. (!dbid )
 !cask - Create ask. (!ask )
 !dask - Cancel ask. (!dask )
 !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.
legendary
Activity: 1001
Merit: 1004

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"
sr. member
Activity: 378
Merit: 250

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
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
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.
newbie
Activity: 28
Merit: 0
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.
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
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.
newbie
Activity: 28
Merit: 0
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.
member
Activity: 69
Merit: 10
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!

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.
newbie
Activity: 28
Merit: 0

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.
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!

@gowron, what do you mean by 'You bought 0.044 BTC and sold 0.108 BTC, which does not make sense practically.'?

How can he sell more BTC than be bought? I thought Coinsecure was only an exchange. Where did the "excess" BTC come from?

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.
newbie
Activity: 28
Merit: 0

@gowron, what do you mean by 'You bought 0.044 BTC and sold 0.108 BTC, which does not make sense practically.'?

How can he sell more BTC than be bought? I thought Coinsecure was only an exchange. Where did the "excess" BTC come from?
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!

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 for taking a look. I am pulling some strange data with your AIP Key: You bought 0.044 BTC and sold 0.108 BTC, which does not make sense practically. So it basically hit an assert in my code. Any idea why your account is having this sort of data? I will improve the error reporting.

Worked fine for me.

@gowron, what do you mean by 'You bought 0.044 BTC and sold 0.108 BTC, which does not make sense practically.'?
newbie
Activity: 28
Merit: 0

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 for taking a look. I am pulling some strange data with your AIP Key: You bought 0.044 BTC and sold 0.108 BTC, which does not make sense practically. So it basically hit an assert in my code. Any idea why your account is having this sort of data? I will improve the error reporting.
member
Activity: 69
Merit: 10
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 ) (!tip rs)
 !tag - Check your tag.
 !address - Check your address.
 !change - Change your tag. (!change )
 !market - check coin market. (!market )
 !convert - check n amount of coinA in coinB (!convert )

 Coinsecure commands :
 !coinapi - Add coinsecure api. (!coinapi )
 !cbid - Create bid.  (!cbid )
 !dbid - Cancel bid. (!dbid )
 !cask - Create ask. (!ask )
 !dask - Cancel ask. (!dask )
 !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
legendary
Activity: 1001
Merit: 1004

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.
legendary
Activity: 1890
Merit: 1000
Landscaping Bitcoin for India!
Pages:
Jump to: