Author

Topic: [OFFICIAL]Bitfinex.com first Bitcoin P2P lending platform for leverage trading - page 288. (Read 723903 times)

hero member
Activity: 602
Merit: 500
Has anyone had any experience of accessing the API via C++. I have zero experience with js or python, but am fine with C++ and would like to access the data using the API?

If you need to get just the data (as opposed to do trading via the API): getting data is easy, since it is just a HTTP request. You get a string as response, which is formatted in JSON format. You can try out retrieving data from the API just with the "wget" command of unix. JSON format is human readable.

Not sure if C++ is the most clever choice, since there aren't so much easy to use libraries for doing this kind of stuff (i.e. pulling some web page via HTTPS and parsing a JSON string). Chances are that you'll end up writing hundreds of LOC for things you can do in other languages with just 10 lines of code. If you're familiar with C++, maybe you should consider to learn a bit Java, since Java is also a compiled and statically typed OO language, but offers an abundance of ready-to use libraries and tutorials. (Unless of course you have other reasons for using C++ beyond just familiarity)
full member
Activity: 532
Merit: 100
I agree, a fine website, very useful. I like the interface! Smiley What frequency are you currently using to poll the API...as presumably you aren't getting blocked! Smiley

Once a minute for different parameters.

Cool, well that gives me a good starting point whilst I await Giancarlo's input Smiley Ta!
full member
Activity: 152
Merit: 100
I agree, a fine website, very useful. I like the interface! Smiley What frequency are you currently using to poll the API...as presumably you aren't getting blocked! Smiley

Once a minute for different parameters.
full member
Activity: 532
Merit: 100

+1 I was wondering the same thing, I want to add some real time features to my website, but I don't know how often I can poll the api. once a second? once a minute? Maybe Giancarlo can shed some light on this.

cool website... any other websites doing USD lending that we can compare your numbers to?

I agree, a fine website, very useful. I like the interface! Smiley What frequency are you currently using to poll the API...as presumably you aren't getting blocked! Smiley
full member
Activity: 152
Merit: 100
Not that I know of, that was the whole reason why I built it. All data comes from the bitfinex api
full member
Activity: 238
Merit: 100

+1 I was wondering the same thing, I want to add some real time features to my website, but I don't know how often I can poll the api. once a second? once a minute? Maybe Giancarlo can shed some light on this.

cool website... any other websites doing USD lending that we can compare your numbers to?
full member
Activity: 152
Merit: 100
Further to my previous question, what is the acceptable frequency limit for API requests to check price etc.?

+1 I was wondering the same thing, I want to add some real time features to my website, but I don't know how often I can poll the api. once a second? once a minute? Maybe Giancarlo can shed some light on this.
full member
Activity: 532
Merit: 100

Has anyone had any experience of accessing the API via C++. I have zero experience with js or python, but am fine with C++ and would like to access the data using the API? Even some code to literally print the bid and ask price would be a tremendously helpful starting point for me Smiley

Thanks

Further to my previous question, what is the acceptable frequency limit for API requests to check price etc.?

Thanks

Mark
member
Activity: 100
Merit: 13
Adding an "Interest Paid" column for each loan closed, would help for accountability. And having those details reflect in History as "Closed Offers".

We should have a loans history, to be able to check how much time each of them did last, how much interest each of them generated, etc.

+1
legendary
Activity: 1199
Merit: 1047
Adding an "Interest Paid" column for each loan closed, would help for accountability. And having those details reflect in History as "Closed Offers".

We should have a loans history, to be able to check how much time each of them did last, how much interest each of them generated, etc.
full member
Activity: 167
Merit: 100
Exactly.  To be honest, I'm still not sure when I accrue interest payments.  Is it every day, or only the day when the position is closed?

Interests are paid daily to your deposit wallet.
full member
Activity: 238
Merit: 100

Adding an "Interest Paid" column for each loan closed, would help for accountability. And having those details reflect in History as "Closed Offers".

Exactly.  To be honest, I'm still not sure when I accrue interest payments.  Is it every day, or only the day when the position is closed?
legendary
Activity: 1428
Merit: 1000

Auto-renewal occasionally increased your liquidity offers above the amount of deposited money.


I've noticed another bug that may be underpaying swap payments...  I had two pieces of credit taken over night, but the two notice emails had different interest rates.  One was listed at the daily rate, the other at the yearly rate.  The inconsistency (which I've seen before) makes me concerned that interest is not being correctly calculated on the back end if there are two different versions of the code in production (notice the timezones are different indicating these messages were generated by different app servers).   Unfortunately, there's no easy way I can't calculate if the swap payments are correct because the "notify when offer is taken" for autorenew doesn't seem to work so not all transactions are being logged in my email - and of course there's no swap history on the website.

Example #1...
Your credit #396599 has been closed at: January 13, 2014 - 04:26:20 AM GMT.
Details:
Currency:   USD
Rate:   0.4449%
Open on:   Jan 13 04:26 AM
Amount:   532.0

Example #2...
Your credit #392658 has been closed at: January 12, 2014 - 12:54:13 AM UTC.
Details:
Currency:   USD
Rate:   218.6%
Open on:   Jan 12 12:54 AM
Amount:   1000.0

Adding an "Interest Paid" column for each loan closed, would help for accountability. And having those details reflect in History as "Closed Offers".
full member
Activity: 532
Merit: 100

Has anyone had any experience of accessing the API via C++. I have zero experience with js or python, but am fine with C++ and would like to access the data using the API? Even some code to literally print the bid and ask price would be a tremendously helpful starting point for me Smiley

Thanks
full member
Activity: 238
Merit: 100
(notice the timezones are different indicating these messages were generated by different app servers)
Yeah, on the other hand GMT and UTC are the same time zone, might be an older loan with the yearly percentage still in place that expired?

I still have "interest" in older ledger entries, newer ones only state "Swap payment" - there might be some overlap of terminology.

The loans were issued and repaid *hours* apart.  The issue I'm worried about is different versions of Bitfinex code running on different servers.   ...and obviously whether or not I'm be accurately paid for my risk.
legendary
Activity: 2618
Merit: 1007
(notice the timezones are different indicating these messages were generated by different app servers)
Yeah, on the other hand GMT and UTC are the same time zone, might be an older loan with the yearly percentage still in place that expired?

I still have "interest" in older ledger entries, newer ones only state "Swap payment" - there might be some overlap of terminology.
legendary
Activity: 1680
Merit: 1001
CEO Bitpanda.com
can't access the site now, anybody has same issue?

edit:its able to access again, wonder why

I can access it, no problems.
member
Activity: 93
Merit: 10
can't access the site now, anybody has same issue?

edit:its able to access again, wonder why
full member
Activity: 238
Merit: 100

Auto-renewal occasionally increased your liquidity offers above the amount of deposited money.


I've noticed another bug that may be underpaying swap payments...  I had two pieces of credit taken over night, but the two notice emails had different interest rates.  One was listed at the daily rate, the other at the yearly rate.  The inconsistency (which I've seen before) makes me concerned that interest is not being correctly calculated on the back end if there are two different versions of the code in production (notice the timezones are different indicating these messages were generated by different app servers).   Unfortunately, there's no easy way I can't calculate if the swap payments are correct because the "notify when offer is taken" for autorenew doesn't seem to work so not all transactions are being logged in my email - and of course there's no swap history on the website.

Example #1...
Your credit #396599 has been closed at: January 13, 2014 - 04:26:20 AM GMT.
Details:
Currency:   USD
Rate:   0.4449%
Open on:   Jan 13 04:26 AM
Amount:   532.0

Example #2...
Your credit #392658 has been closed at: January 12, 2014 - 12:54:13 AM UTC.
Details:
Currency:   USD
Rate:   218.6%
Open on:   Jan 12 12:54 AM
Amount:   1000.0
legendary
Activity: 1638
Merit: 1001
₪``Campaign Manager´´₪
...probably as a measure against the auto-renew bug...
What bug? That'd explain why it's gone

Auto-renewal occasionally increased your liquidity offers above the amount of deposited money.

+1, I think the hike in fees is quite high. But I have more problem with your discount levels (not counting your definition of "market maker") your top tier requires $20million in transactions in 30 days, that's close to $1m a day at current prices, what happens if BTC reach $1500 or more?. Maybe it's feasible in the future when there are more market participants on your exchange and have better liquidity but no way feasible in current conditions.
I hope you could at least review your discount levels a bit. Thanks

Discount levels based on dollar amount make more sense to me too, but even at the highest rate 0.15% is a pretty sweet deal compared to the competition.
Jump to: